Azureの小ネタ (改)

~Azureネタを中心に、色々とその他の技術的なことなどを~

開発ストレージの通信をFiddlerを使って参照する

開発ストレージへの通信はFiddlerを使ってのぞけないので、DevelopmentStorageProxyUriで明示的に指定する必要がある。

サンプル

using Microsoft.WindowsAzure.Storage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StorageSamples
{
    class DevStorage
    {
        public static void Sample()
        {
            // 開発ストレージの取得
            
            var account = CloudStorageAccount.Parse("UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://ipv4.fiddler");

            var client = account.CreateCloudBlobClient();
            var container = client.GetContainerReference("container");
            container.CreateIfNotExists();

            Console.ReadLine();
        }
    }
}

結果

Fiddlerのキャプチャ