public HubClientsProxy(string endpoint, string accessKey, string hubName, HubProxyOptions options) { if (string.IsNullOrEmpty(endpoint)) { throw new ArgumentNullException(nameof(endpoint)); } if (string.IsNullOrEmpty(accessKey)) { throw new ArgumentNullException(nameof(accessKey)); } if (string.IsNullOrEmpty(hubName)) { throw new ArgumentNullException(nameof(hubName)); } _endpoint = endpoint; _accessKey = accessKey; _hubName = hubName.ToLower(); _options = options ?? HubProxyOptions.DefaultHubProxyOptions; All = ClientProxyFactory.CreateAllClientsProxy(_endpoint, _options.ApiVersion, _accessKey, _hubName); }
public IClientProxy Users(IReadOnlyList <string> userIds) { return(ClientProxyFactory.CreateMultipleUserProxy(_endpoint, _options.ApiVersion, _accessKey, _hubName, userIds)); }
public IClientProxy User(string userId) { return(ClientProxyFactory.CreateSingleUserProxy(_endpoint, _options.ApiVersion, _accessKey, _hubName, userId)); }
public IClientProxy GroupExcept(string groupName, IReadOnlyList <string> excludeIds) { return(ClientProxyFactory.CreateSingleGroupExceptProxy(_endpoint, _options.ApiVersion, _accessKey, _hubName, groupName, excludeIds)); }
public IClientProxy Groups(IReadOnlyList <string> groupNames) { return(ClientProxyFactory.CreateMultipleGroupProxy(_endpoint, _options.ApiVersion, _accessKey, _hubName, groupNames)); }
public IClientProxy Group(string groupName) { return(ClientProxyFactory.CreateSingleGroupProxy(_endpoint, _options.ApiVersion, _accessKey, _hubName, groupName)); }
public IClientProxy Clients(IReadOnlyList <string> connectionIds) { return(ClientProxyFactory.CreateMultipleClientProxy(_endpoint, _options.ApiVersion, _accessKey, _hubName, connectionIds)); }
public IClientProxy Client(string connectionId) { return(ClientProxyFactory.CreateSingleClientProxy(_endpoint, _options.ApiVersion, _accessKey, _hubName, connectionId)); }
public IClientProxy AllExcept(IReadOnlyList <string> excludedIds) { return(ClientProxyFactory.CreateAllClientsExceptProxy(_endpoint, _options.ApiVersion, _accessKey, _hubName, excludedIds)); }