C# Class SharpArch.Web.Http.Castle.WindsorHttpConfigurationExtensions

Show file Open project: sharparchitecture/Sharp-Architecture

Public Methods

Method Description
InstallHttpFilterProvider ( [ services, [ container, ITypePropertyDescriptorCache propertyDescriptorCache ) : void

Installs Filter provider with injectable property dependencies support.

UseWindsor ( this configuration, IWindsorContainer container, ITypePropertyDescriptorCache injectablePropertyCache ) : System.Web.Http.HttpConfiguration

Configures Web API runtime to use Castle Windsor Container

Performs following actions Install DependencyResolver IDependencyResolver Add property injection support for ActionFilters, WindsorHttpFilterProvider

Method Details

InstallHttpFilterProvider() public static method

Installs Filter provider with injectable property dependencies support.
public static InstallHttpFilterProvider ( [ services, [ container, ITypePropertyDescriptorCache propertyDescriptorCache ) : void
services [ Services container,
container [ Windsor container,
propertyDescriptorCache ITypePropertyDescriptorCache Injectable property cache
return void

UseWindsor() public static method

Configures Web API runtime to use Castle Windsor Container
Performs following actions Install DependencyResolver IDependencyResolver Add property injection support for ActionFilters, WindsorHttpFilterProvider
public static UseWindsor ( this configuration, IWindsorContainer container, ITypePropertyDescriptorCache injectablePropertyCache ) : System.Web.Http.HttpConfiguration
configuration this Configuration
container IWindsorContainer Windsor container to use
injectablePropertyCache ITypePropertyDescriptorCache Injectable property cache
return System.Web.Http.HttpConfiguration