예제 #1
0
 protected override Task OnReceivedAsync(IRequest request, string connectionId, string data)
 {
     if (User.ContainsKey(connectionId))
     {
         return(Connection.Send(connectionId, WebOperate.Get(data).Exec(User[connectionId])));
     }
     else
     {
         return(Connection.Broadcast(data));
     }
 }
예제 #2
0
 //private void S(object o) { }
 protected override Task OnReceivedAsync(IRequest request, string connectionId, string data)
 {
     this.ConnectionId = connectionId;
     return(Connection.Send(connectionId, WebOperate.Get(data).Exec(this)));
     //return Connection.Broadcast();
 }