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

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

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

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

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

            return _connection.Send(connectionId, command);
        }