Exemple #1
0
    public SyncBootStateAccessor(
        ILogger <SyncBootStateAccessor> logger,
        LastSyncedFileManager lastSyncedFileManager,
        IOptionsMonitor <GlobalSettings> globalSettings,
        ICacheInstructionService cacheInstructionService)
    {
        _logger = logger;
        _lastSyncedFileManager   = lastSyncedFileManager;
        _globalSettings          = globalSettings.CurrentValue;
        _cacheInstructionService = cacheInstructionService;

        globalSettings.OnChange(x => _globalSettings = x);
    }
 /// <summary>
 ///     Initializes a new instance of the <see cref="BatchedDatabaseServerMessenger" /> class.
 /// </summary>
 public BatchedDatabaseServerMessenger(
     IMainDom mainDom,
     CacheRefresherCollection cacheRefreshers,
     IServerRoleAccessor serverRoleAccessor,
     ILogger <BatchedDatabaseServerMessenger> logger,
     ISyncBootStateAccessor syncBootStateAccessor,
     IHostingEnvironment hostingEnvironment,
     ICacheInstructionService cacheInstructionService,
     IJsonSerializer jsonSerializer,
     IRequestCache requestCache,
     IRequestAccessor requestAccessor,
     LastSyncedFileManager lastSyncedFileManager,
     IOptionsMonitor <GlobalSettings> globalSettings)
     : base(mainDom, cacheRefreshers, serverRoleAccessor, logger, true, syncBootStateAccessor, hostingEnvironment,
            cacheInstructionService, jsonSerializer, lastSyncedFileManager, globalSettings)
 {
     _requestCache    = requestCache;
     _requestAccessor = requestAccessor;
 }