/// <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); } }
private void SendIdUser(int userId) { var action = new IdentifyAction(_client); action.ReceiverId = userId; action.SenderId = _id; SendAction(action); }
private IdentifyAction GetIdentifyAction(int senderId, NetworkStream stream) { var action = new IdentifyAction(_manager.Client); return(action); }