コード例 #1
0
        public AutoRestoreMechanism(
            IFeatureConfigurationBackup backup,
            ILogger logger,
            ISystemConfigurationUpdate systemConfigurationUpdate,
            int timeout_ms)
        {
            if (timeout_ms < 0)
            {
                throw new ArgumentException("Must be 0 or greater!", nameof(timeout_ms));
            }

            this.backup = backup;
            this.logger = logger;
            this.systemConfigurationUpdate = systemConfigurationUpdate;
            this.timeout_ms = timeout_ms;
        }
コード例 #2
0
 internal ServiceController(
     ILogger logger,
     Func <string, ILogObserver> logWriterFactory,
     IOperationSequence bootstrapSequence,
     IOperationSequence sessionSequence,
     IServiceHost serviceHost,
     SessionContext sessionContext,
     ISystemConfigurationUpdate systemConfigurationUpdate)
 {
     this.logger                    = logger;
     this.logWriterFactory          = logWriterFactory;
     this.bootstrapSequence         = bootstrapSequence;
     this.sessionSequence           = sessionSequence;
     this.serviceHost               = serviceHost;
     this.sessionContext            = sessionContext;
     this.systemConfigurationUpdate = systemConfigurationUpdate;
 }