コード例 #1
0
        public static BlobServiceClient GetBlobServiceClient(this AzuriteFixture azuriteFixture)
        {
            var transport = azuriteFixture.GetTransport();

            return(new BlobServiceClient(azuriteFixture.GetAzureAccount().ConnectionString, new BlobClientOptions()
            {
                Transport = transport
            }));
        }
コード例 #2
0
        public static QueueServiceClient GetQueueServiceClient(this AzuriteFixture azuriteFixture, QueueClientOptions queueClientOptions = default)
        {
            if (queueClientOptions == default)
            {
                queueClientOptions = new QueueClientOptions()
                {
                    MessageEncoding = QueueMessageEncoding.Base64
                };
            }

            queueClientOptions.Transport = azuriteFixture.GetTransport();
            return(new QueueServiceClient(azuriteFixture.GetAzureAccount().ConnectionString, queueClientOptions));
        }