private void Application_Start(object sender, EventArgs e) { // Code that runs on application startup // Need this line so injection on controllers that use other assemblies can happen correctly BuildManager.GetReferencedAssemblies(); RouteConfig.RegisterRoutes(RouteTable.Routes); ContainerConfig.SetUpContainer(); // Override the Instrumentation Key from ApplicationInsights.config, so we can set it from the app settings in the azure configuration dashboard Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration.Active.InstrumentationKey = ConfigurationManager.AppSettings["ApplicationInsightsInstrumentationKey"]; }
private void Application_Start(object sender, EventArgs e) { // Code that runs on application startup RouteConfig.RegisterRoutes(RouteTable.Routes); ContainerConfig.SetUpContainer(); }