public DocumentDbKeyValueContainer( IStorageClient client, IExceptionChecker exceptionChecker, AppConfig appConfig, IAppConfigurationClient appConfigHelper, ILogger <DocumentDbKeyValueContainer> logger, IHttpContextAccessor httpContextAccessor) { this.disposedValue = false; this.client = client; this.exceptionChecker = exceptionChecker; this.appConfig = appConfig; this.appConfigClient = appConfigHelper; this.logger = logger; this.httpContextAccessor = httpContextAccessor; }
public DocumentDbKeyValueContainer( IFactory <IDocumentClient> clientFactory, IExceptionChecker exceptionChecker, IServicesConfig config, ILogger logger) { this.disposedValue = false; this.client = clientFactory.Create(); this.exceptionChecker = exceptionChecker; this.log = logger; this.docDbDatabase = config.DocumentDbDatabase; this.docDbCollection = config.DocumentDbCollection; this.docDbRUs = config.DocumentDbRUs; this.docDbOptions = this.GetDocDbOptions(); }