コード例 #1
0
 public void SendIsTyping(ISession session, SendIsTypingRequest request)
 {
     Logger.Trace("IsTyping={0} from {1}", request.IsTyping, session.UserId);
     //actually we may send IsTyping only to "Active" device only, by Active I mean the most recently used one.
     foreach (var deviceId in request.Devices)
     {
         _isTypingEventManager.DeliverEventToDevice(new IsTypingEvent
             {
                 IsTyping = request.IsTyping,
                 SenderUserId = session.UserId,
                 GroupId = request.GroupId,
                 ReceiverDeviceId = deviceId
             });
     }
 }
コード例 #2
0
 public Task SendIsTyping(SendIsTypingRequest request)
 {
     return _connectionManager.SendRequest(request);
 }