Microsoft.AspNet.SignalR.GroupManager.Remove C# (CSharp) Метод

Remove() публичный Метод

Removes a connection from the specified group.
public Remove ( string connectionId, string groupName ) : System.Threading.Tasks.Task
connectionId string The connection id to remove from the group.
groupName string The name of the group
Результат System.Threading.Tasks.Task
        public Task Remove(string connectionId, string groupName)
        {
            if (connectionId == null)
            {
                throw new ArgumentNullException("connectionId");
            }

            if (groupName == null)
            {
                throw new ArgumentNullException("groupName");
            }

            var command = new Command
            {
                CommandType = CommandType.RemoveFromGroup,
                Value = CreateQualifiedName(groupName),
                WaitForAck = true
            };

            return _connection.Send(connectionId, command);
        }