public PaymentsRepository(IDocumentClientFactory documentClientFactory, IOptions <DocumentDbSettings> settings) { this.settings = settings.Value; this.documentClientFactory = documentClientFactory.Create(this.settings).Result; }
public GetPaymentQuery(IDocumentClientFactory documentClientFactory, IOptions <DocumentDbSettings> dbSettings) { this.dbSettings = dbSettings.Value; this.documentClient = documentClientFactory.Create(this.dbSettings).Result; }
public SavePaymentCommand(IDocumentClientFactory documentClientFactory, IOptions <DocumentDbSettings> dbSettings) { this.dbSettings = dbSettings.Value; this.documentClient = documentClientFactory.Create(this.dbSettings).Result; }