static AzureBlobServiceSettings()
 {
     string settingFile = GetSettingFile();
     if (File.Exists(settingFile))
     {
         instance = DataContractSerializationHelper.Deserialize<AzureBlobServiceSettings>(settingFile);
     }
     else
     {
         instance = new AzureBlobServiceSettings()
         {
             Endpoint = "http://127.0.0.1:10000/devstoreaccount1/",
             AccountName = "devstoreaccount1",
             AccountKey = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
         };
         Save(instance);
     }
 }
예제 #2
0
        static AzureBlobServiceSettings()
        {
            string settingFile = GetSettingFile();

            if (File.Exists(settingFile))
            {
                instance = DataContractSerializationHelper.Deserialize <AzureBlobServiceSettings>(settingFile);
            }
            else
            {
                instance = new AzureBlobServiceSettings()
                {
                    Endpoint    = "http://127.0.0.1:10000/devstoreaccount1/",
                    AccountName = "devstoreaccount1",
                    AccountKey  = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
                };
                Save(instance);
            }
        }
 public static void Save(AzureBlobServiceSettings instance)
 {
     string settingFile = GetSettingFile();
     DataContractSerializationHelper.Serialize(instance, settingFile);
 }
예제 #4
0
        public static void Save(AzureBlobServiceSettings instance)
        {
            string settingFile = GetSettingFile();

            DataContractSerializationHelper.Serialize(instance, settingFile);
        }