public SignalRLoggingClient(ScheduleLoggerProvider loggerProvider, SignalRClientFactory clientFactory)
        {
            _client = clientFactory.CreateClient(ILoggingClient.HubName);

            _callbacks = Connection.On(nameof(loggerProvider.StartLoggingAsync), loggerProvider.StartLoggingAsync);
            _callbacks = Connection.On(nameof(loggerProvider.StopLoggingAsync), loggerProvider.StopLoggingAsync);
        }
Example #2
0
 public SignalRScheduleClient(
     ILoggerFactory loggerFactory,
     IServiceProvider services,
     IOptions <ScheduleOptions> scheduleOptions,
     SignalRClientFactory clientFactory)
 {
     _logger                 = loggerFactory.CreateLogger(GetType());
     _services               = services;
     _scheduleOptions        = scheduleOptions;
     _client                 = clientFactory.CreateClient(IScheduleClient.HubName);
     _defaultJobExecutorType = typeof(IJobExecutor <>);
 }