Beispiel #1
0
 public abstract void Handle(SessionRequest request);
Beispiel #2
0
 protected T ReadPayload <T>(SessionRequest request) where T : IConnectPayload
 {
     return(_serializer.Deserialize <T>(request.RequestPayload, null));
 }
Beispiel #3
0
 protected void RejectWithPayload <T>(SessionRequest request, T payload) where T : IDisconnectPayload
 {
     request.Reject(_serializer.Serialize(payload, null).To());
 }
Beispiel #4
0
 protected void BeforeSessionOpen(SessionRequest sessionRequest)
 {
     sessionRequest.SetupRequest(_mutableSessions);
     _handler.Handle(sessionRequest);
 }