protected void Session_Start(object sender, EventArgs e) { if (!securityInitialized) { CloudStorageInitializer.InitializeCloudStorage(CloudStorageAccount.FromConfigurationSetting("DataConnectionString")); // when self signed cert installed. InitializeSecurity(); securityInitialized = true; } }
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); }