Application.Web.App_Start.AppHost.Configure C# (CSharp) Метод

Configure() публичный Метод

public Configure ( Funq.Container container ) : void
container Funq.Container
Результат void
        public override void Configure(Container container)
        {
            //Set JSON web services to return idiomatic JSON camelCase properties
            ServiceStack.Text.JsConfig.EmitCamelCaseNames = false;

            //Uncomment to change the default ServiceStack configuration
            //SetConfig(new EndpointHostConfig {
            //});

            //Use Elmah with ServiceStack
            LogManager.LogFactory = new ElmahLogFactory(new NullLogFactory());

            //Make the default lifetime of objects limited to request
            container.DefaultReuse = ReuseScope.Request;

            //Uncomment to use Entity Framework
            //RegisterEfServicesAndRepositories(container);
            RegisterOrmLiteServicesAndRepositories(container);
            RegisterCacheAndStorage(container);

            //Enable Authentication
            //ConfigureAuth(container);

            //Set MVC to use the same Funq IOC as ServiceStack
            ControllerBuilder.Current.SetControllerFactory(new FunqControllerFactory(container));
        }