예제 #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);
 }
예제 #2
0
 public override Task OnConnectedAsync(Connection connection)
 {
     throw new Exception();
 }
예제 #3
0
 private async Task SendMessageToSocketAsync(WebSocketHandler handler, Connection connection, string message)
 {
     await handler.ReceiveAsync(connection, message);
 }