Ejemplo n.º 1
0
 /// <summary>
 /// construction
 /// </summary>
 /// <param name="tid"> Each rpc call message id</param>
 /// <param name="action">Argument needs by action.</param>
 /// <param name="arg">callback function</param>
 public Future(string tid, FutureTypes type, Action <string, MapField <string, ByteString> > action, string arg = "")
 {
     Tid    = tid;
     Type   = type;
     Action = action;
     Arg    = arg;
 }
Ejemplo n.º 2
0
 public CtrlMessageEventArgs(FutureTypes type, string id, int code, string text, string topic, MapField <string, ByteString> paramaters)
 {
     Type   = type;
     Id     = id;
     Code   = code;
     Text   = text;
     Topic  = topic;
     Params = paramaters;
 }
Ejemplo n.º 3
0
        void OnCtrlMessageEvent(FutureTypes type, string id, int code, string text, string topic, MapField <string, ByteString> paramaters)
        {
            var e       = new CtrlMessageEventArgs(type, id, code, text, topic, paramaters);
            var handler = CtrlMessageEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }