public override void ResponderConversation(ref object context) { JoinGameReply msg = new JoinGameReply() { Game = _Game, ConvId = ConvId, MsgId = MessageId.Create(), MessageType = TypeOfMessage.CreateGameReply }; ReliableSend(msg); }
public override void InitatorConversation(ref object context) { Message msg = CreateFirstMessage(); ReliableSend(msg); if (Error != null) { return; } JoinGameReply reply = Message.Decode <JoinGameReply>(incomingMsg); _Game = reply.Game; //do something if needed with context; context = _Game; Send(CreateAck()); }