Example #1
0
        private static async Task <string> GetDatabaseResourceIdAsync(IChangeFeedDocumentClient documentClient, DocumentCollectionInfo collectionLocation)
        {
            Logger.InfoFormat("Reading database: '{0}'", collectionLocation.DatabaseName);
            Uri databaseUri = UriFactory.CreateDatabaseUri(collectionLocation.DatabaseName);
            var response    = await documentClient.ReadDatabaseAsync(databaseUri, null).ConfigureAwait(false);

            return(response.Resource.ResourceId);
        }
 public async Task <IResourceResponse <Database> > ReadDatabaseAsync(Uri databaseUri, RequestOptions options)
 {
     return(await _inner.ReadDatabaseAsync(databaseUri, options));
 }