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