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);
        }
示例#2
0
 public DocumentRepository(IDocumentDbConfiguration configuration)
 {
     this.configuration = configuration;
     client             = DocumentClientFactory.Create(configuration);
 }