コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }