public TestPetImagesClient(ICosmosContainer accountContainer, ICosmosContainer imageContainer,
                            IBlobContainer blobContainer, IMessagingClient messagingClient)
 {
     this.AccountContainer = accountContainer;
     this.ImageContainer   = imageContainer;
     this.BlobContainer    = blobContainer;
     this.MessagingClient  = messagingClient;
 }
Beispiel #2
0
        public static async Task <bool> DoesItemExist <T>(ICosmosContainer container, string partitionKey, string id)
            where T : DbItem
        {
            try
            {
                await container.GetItem <T>(partitionKey, id);

                return(true);
            }
            catch (DatabaseItemDoesNotExistException)
            {
                return(false);
            }
        }
 public TestPetImagesClient(ICosmosContainer accountContainer, ICosmosContainer imageContainer, IBlobContainer blobContainer)
 {
     this.AccountContainer = accountContainer;
     this.ImageContainer   = imageContainer;
     this.BlobContainer    = blobContainer;
 }
 public TestPetImagesClient(ICosmosContainer accountContainer)
 {
     this.AccountContainer = accountContainer;
 }
Beispiel #5
0
 public AccountController(ICosmosContainer cosmosDb)
 {
     this.CosmosContainer = cosmosDb;
 }