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