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 |
return | 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);
}