コード例 #1
0
 public static async Task <OfferV2> GetOfferAsync(this IDocumentClient documentClient, string databaseName, string collectionName = null)
 {
     if (string.IsNullOrEmpty(collectionName))
     {
         return(await documentClient.GetDatabaseOfferAsync(databaseName));
     }
     return(await documentClient.GetCollectionOfferAsync(databaseName, collectionName) ??
            await documentClient.GetDatabaseOfferAsync(databaseName));
 }