internal void TerminateApp() { var srpc = new Srpc.Message(); srpc.Set(Srpc.Key.Method, "MainLoop_EndLoop"); Send(srpc); }
void OnConnectedMainThread() { _form.SetConnected(_bConnected); var srpc = new Srpc.Message(); srpc.Set(Srpc.Key.Method, Protocol.Hello.Method); Send(srpc); }
internal void Send(Srpc.Message msg, SrpcCompletion fComplete) { if (fComplete != null) { string sSrpcId = "_" + _nSrpcId++; msg.Set("SrpcId", sSrpcId); _completions.Add(sSrpcId, fComplete); } Send(msg.ToString() + "\n"); }