예제 #1
0
        protected void Application_Start(object sender, EventArgs e)
        {
            HttpConfiguration             config     = GlobalConfiguration.Configuration;
            ITenantIdentificationStrategy idStrategy =
                new ContextItemsTenantIdentificationStrategy("App:Tenant");

            config.MessageHandlers.Add(new TenantIdentifierMessageHandler());

            AutofacWebApi.Initialize(config, idStrategy);
            WebApiConfig.Configure(config);
            RouteConfig.RegisterRoutes(config);
        }
예제 #2
0
        protected void Application_Start(object sender, EventArgs e) {

            HttpConfiguration config = GlobalConfiguration.Configuration;
            ITenantIdentificationStrategy idStrategy = 
                new ContextItemsTenantIdentificationStrategy("App:Tenant");

            config.MessageHandlers.Add(new TenantIdentifierMessageHandler());

            AutofacWebApi.Initialize(config, idStrategy);
            WebApiConfig.Configure(config);
            RouteConfig.RegisterRoutes(config);
        }