コード例 #1
0
 protected void Session_Start(object sender, EventArgs e)
 {
     if (!securityInitialized)
     {
         CloudStorageInitializer.InitializeCloudStorage(CloudStorageAccount.FromConfigurationSetting("DataConnectionString")); // when self signed cert installed.
         InitializeSecurity();
         securityInitialized = true;
     }
 }
コード例 #2
0
        protected void Application_Start()
        {
            CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) =>
            {
                configSetter(CloudConfigurationManager.GetSetting(configName));
            });

            var account = CloudStorageAccount.FromConfigurationSetting("DataConnectionString");

            CloudStorageInitializer.InitializeCloudStorage(account);
            this.UploadTileImagesFromResources(account.CreateCloudBlobClient());

            AreaRegistration.RegisterAllAreas();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);
        }