Beispiel #1
0
 private async Task SendMessageToSocketAsync(WebSocketHandler handler, Connection connection, string methodName, params object[] args)
 {
     var serializedMessage = MessageSerializer.SerializeObject(new InvocationDescriptor()
     {
         Id         = Interlocked.Increment(ref _nextId).ToString(),
         MethodName = methodName,
         Arguments  = args
     });
     await handler.ReceiveAsync(connection, serializedMessage);
 }
Beispiel #2
0
 public override Task OnConnectedAsync(Connection connection)
 {
     throw new Exception();
 }
Beispiel #3
0
 private async Task SendMessageToSocketAsync(WebSocketHandler handler, Connection connection, string message)
 {
     await handler.ReceiveAsync(connection, message);
 }