예제 #1
0
 /// <summary>
 /// Initialize the application.
 /// </summary>
 /// <remarks>
 /// Fired when the first instance of the HttpApplication class is created. It allows you to create objects that are accessible by all HttpApplication instances.
 /// </remarks>
 protected void Application_Start()
 {
     FulcrumApplicationHelper.WebApiBasicSetup(new ConfigurationManagerAppSettings());
     GlobalConfiguration.Configure(WebApiConfig.Register);
     GlobalConfiguration.Configure(SwaggerConfig.Register);
     GlobalConfiguration.Configure(AutofacConfig.Register);
     GlobalConfiguration.Configuration.EnsureInitialized();
 }
예제 #2
0
        protected void Application_Start()
        {
            FulcrumApplicationHelper.WebApiBasicSetup(new ConfigurationManagerAppSettings());

            GlobalConfiguration.Configure(config =>
            {
                AutofacConfig.Register(config);
                WebApiConfig.Register(config);
            });
        }