public static ServiceClientProxy CreateSingleGroupExceptProxy(this SignalR signalr, string hubName, string groupName, IReadOnlyList <string> excludedIds) { return(new ServiceClientProxy( $"http://{signalr.HostName}/{signalr.ApiVersion}/hub/{hubName}/group/{groupName}", () => signalr.GenerateServerToken(hubName), excludedIds)); }
public static ServiceClientProxy CreateMultipleGroupProxy(this SignalR signalr, string hubName, IReadOnlyList <string> groupNames) { return(new ServiceClientProxy( $"http://{signalr.HostName}/{signalr.ApiVersion}/hub/{hubName}/groups/{string.Join(",", groupNames)}", () => signalr.GenerateServerToken(hubName))); }
public static ServiceClientProxy CreateAllClientsProxy(this SignalR signalr, string hubName) { return(new ServiceClientProxy( $"http://{signalr.HostName}/{signalr.ApiVersion}/hub/{hubName}", () => signalr.GenerateServerToken(hubName))); }
public static ServiceClientProxy CreateSingleUserProxy(this SignalR signalr, string hubName, string userId) { return(new ServiceClientProxy( $"http://{signalr.HostName}/{signalr.ApiVersion}/hub/{hubName}/user/{userId}", () => signalr.GenerateServerToken(hubName))); }