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);
     }
 }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
        public static void Save(AzureBlobServiceSettings instance)
        {
            string settingFile = GetSettingFile();

            DataContractSerializationHelper.Serialize(instance, settingFile);
        }