예제 #1
0
 /// <summary>
 /// Identifies the current user.
 /// </summary>
 /// <param name="action">The identify action containing the person ID of the user.</param>
 /// <returns>A Task object for this method is asynchronous.</returns>
 private async Task Execute(IdentifyAction action)
 {
     if (!sleeping)
     {
         await SetIdentity(action.PersonId);
     }
 }
예제 #2
0
        private void SendIdUser(int userId)
        {
            var action = new IdentifyAction(_client);

            action.ReceiverId = userId;
            action.SenderId   = _id;

            SendAction(action);
        }
예제 #3
0
        private IdentifyAction GetIdentifyAction(int senderId, NetworkStream stream)
        {
            var action = new IdentifyAction(_manager.Client);

            return(action);
        }