Example #1
0
        /// <summary>
        /// Handles the start of the application
        /// </summary>
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            // used by the service app model
            ImagePathProvider.SetProvider(new WebImagePathProvider());
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="App"/> class.
 /// </summary>
 public App()
 {
     ImagePathProvider.SetProvider(new WindowsImagePathProvider());
 }