예제 #1
0
 public ReplaceHandler(IFileConfigurationRepositoryExtended config,
                       IHttpContextAccessor accessor, ILoggerFactory loggerFactory)
 {
     this.httpContext = accessor;
     this._config     = config;
     this._logger     = loggerFactory.CreateLogger <ReplaceHandler>();
 }
예제 #2
0
 public OcelotConfigurationSyncAgent(OcelotConfiguration config, IFileConfigurationRepositoryExtended configSetter
                                     , ILoggerFactory loggerFactory, IHttpClientFactory factory)
 {
     this._setter            = configSetter;
     this._config            = config;
     this._loggerFactory     = loggerFactory;
     this._logger            = loggerFactory.CreateLogger <OcelotConfigurationSyncAgent>();
     this._httpClientFactory = factory;
 }
 public SnapshotConfigurationRepositoryExtended(IFileConfigurationRepositoryExtended inner)
 {
     this._innerRepository = inner;
     this._snapShotsPath   = Path.Combine(AppContext.BaseDirectory, Project.ProjectName, "Configuration", "Snapshots");
     if (!Directory.Exists(_snapShotsPath))
     {
         Directory.CreateDirectory(_snapShotsPath);
     }
 }