/// <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; }
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; }
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); } }