Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 public void Log(object message)
 {
     CoreBaseClassFactory.Log(this, message);
 }
Example #4
0
 public CoreCallback CreateCallBack(string group)
 {
     return(CoreBaseClassFactory.CreateCallBack(this, group));
 }
Example #5
0
 public object ServiceAddCallbacks(Dictionary <string, object> parameters)
 {
     CoreBaseClassFactory.ServiceAddCallbacks(this, parameters);
     return(null);
 }
Example #6
0
 public CoreBaseClass()
 {
     this._Callbacks = new Dictionary <string, List <IExecutable> > ();
     this._Name      = this.GenerateName();
     CoreBaseClassFactory.Construct(this);
 }