public object Invoke(string className, string methodName, string args, Guid workspaceID, Guid dataListID)
{
var serviceType = Type.GetType(string.Format(_typeNameFormat, className));
if(serviceType != null)
{
var method = serviceType.GetMethod(methodName);
if(method != null)
{
var service = method.IsStatic ? null : Activator.CreateInstance(serviceType);
var actionResult = method.Invoke(service, new object[] { args, workspaceID, dataListID });
if(actionResult != null)
{
return actionResult;
}
}
}
return null;
}