public async Task Create(IDocumentDbConfiguration configuration) { var client = DocumentClientFactory.Create(configuration); await OnPreCreate(client, configuration); await CreateDatabase(client, configuration); await Contribute(client, configuration); await OnPostCreate(client, configuration); }
public DocumentRepository(IDocumentDbConfiguration configuration) { this.configuration = configuration; client = DocumentClientFactory.Create(configuration); }