コード例 #1
0
ファイル: AsyncAdminServerClient.cs プロジェクト: mow/ravendb
 public Task StartIndexingAsync(int?maxNumberOfParallelIndexTasks = null, CancellationToken token = default(CancellationToken))
 {
     return(innerAsyncServerClient.ExecuteWithReplication("POST", async operationMetadata =>
     {
         using (var req = adminRequest.StartIndexing(operationMetadata.Url, maxNumberOfParallelIndexTasks))
         {
             await req.ExecuteRequestAsync().WithCancellation(token).ConfigureAwait(false);
         }
     }, token));
 }
コード例 #2
0
 public Task StartIndexingAsync()
 {
     return(innerAsyncServerClient.ExecuteWithReplication("POST", operationMetadata => adminRequest.StartIndexing(operationMetadata.Url).ExecuteRequestAsync()));
 }
コード例 #3
0
 public Task StartIndexingAsync(int?maxNumberOfParallelIndexTasks = null)
 {
     return(innerAsyncServerClient.ExecuteWithReplication("POST", operationMetadata => adminRequest.StartIndexing(operationMetadata.Url, maxNumberOfParallelIndexTasks).ExecuteRequestAsync()));
 }