コード例 #1
0
 public FeedAggregatorService(
     IConfiguration configuration,
     IServiceProvider serviceProvider,
     IContainer container,
     IOptionsMonitor <ILog> optionsMonitor,
     SignalrServiceClient signalrServiceClient,
     IConfigureNamedOptions <SignalrServiceClient> configureOptions)
 {
     Configuration        = configuration;
     ServiceProvider      = serviceProvider;
     Container            = container;
     Log                  = optionsMonitor.Get("ASC.Feed.Agregator");
     SignalrServiceClient = signalrServiceClient;
     configureOptions.Configure("counters", SignalrServiceClient);
 }
コード例 #2
0
 public CookieOptionsServiceTest()
 {
     _service = new CookieOptionsService();
 }
コード例 #3
0
        public SocketServiceLauncher(IOptionsMonitor <ILog> options, IConfiguration configuration, CoreBaseSettings coreBaseSettings, SignalrServiceClient signalrServiceClient, IHostEnvironment hostEnvironment, IConfigureNamedOptions <SignalrServiceClient> configureOptions)
        {
            Logger = options.CurrentValue;
            CancellationTokenSource = new CancellationTokenSource();
            Configuration           = configuration;
            CoreBaseSettings        = coreBaseSettings;
            SignalrServiceClient    = signalrServiceClient;
            HostEnvironment         = hostEnvironment;

            configureOptions.Configure(SignalrServiceClient);
        }