public UserChannelService(IApiGateway apiGateway, IUserService userService, IJSRuntime jSRuntime, ChannelsHubSignalRClient channelsHubSignalRClient) { this.apiGateway = apiGateway; this.userService = userService; this.jSRuntime = jSRuntime; this.channelsHubSignalRClient = channelsHubSignalRClient; channelsHubSignalRClient.ChannelJoined += async(sender, args) => await ChannelsHubSignalRClient_ChannelJoined(sender, args).ConfigureAwait(false); channelsHubSignalRClient.ChannelLeft += ChannelsHubSignalRClient_ChannelLeft; channelsHubSignalRClient.AutoModListenerEnabled += ChannelsHubSignalRClient_AutoModListenerEnabled; channelsHubSignalRClient.AutoModListenerDisabled += ChannelsHubSignalRClient_AutoModListenerDisabled; }
public UserService( IApiGateway apiGateway, IApplicationStateManager applicationStateManager, ChannelsHubSignalRClient channelsHubSignalRClient, SuspensionsHubSignalRClient suspensionsHubSignalRClient, NotificationHubSignalRClient notificationHubSignalRClient, IJSRuntime jSRuntime) { this.apiGateway = apiGateway; this.applicationStateManager = applicationStateManager; this.channelsHubSignalRClient = channelsHubSignalRClient; this.suspensionsHubSignalRClient = suspensionsHubSignalRClient; this.notificationHubSignalRClient = notificationHubSignalRClient; this.jSRuntime = jSRuntime; notificationHubSignalRClient.NotificationReceived += NotificationHubSignalRClient_NotificationReceived; }