public static object ServiceAddCallback(ICoreBaseObject _instance, Dictionary <string, object> parameters) { string group = (String)parameters [CoreCallback.GROUP]; IExecutable callback = (IExecutable)parameters [CoreCallback.CALLBACK]; CoreBaseClassFactory.AddCallback(_instance, group, callback); return(null); }
public static object ServiceAddCallbacks(ICoreBaseObject _instance, Dictionary <string, object> parameters) { string group = (string)parameters ["group"]; List <IExecutable> callbacks = (List <IExecutable>)parameters ["callbacks"]; foreach (IExecutable callback in callbacks) { CoreBaseClassFactory.AddCallback(_instance, group, callback); } return(null); }