C# Class Castle.MonoRail.Framework.ServiceProviderLocator

Uses the HttpContext and the IServiceProviderExAccessor to access the container instance.
Show file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
AddLocatorStrategy ( IAccessorStrategy strategy ) : void

Adds a locator strategy.

LocateProvider ( ) : IServiceProviderEx

Locates the service provider using the registered strategies.

ServiceProviderLocator ( ) : System.Collections.Generic

Initializes a new instance of the ServiceProviderLocator class.

Method Details

AddLocatorStrategy() public method

Adds a locator strategy.
public AddLocatorStrategy ( IAccessorStrategy strategy ) : void
strategy IAccessorStrategy The strategy.
return void

LocateProvider() public method

Locates the service provider using the registered strategies.
public LocateProvider ( ) : IServiceProviderEx
return IServiceProviderEx

ServiceProviderLocator() public method

Initializes a new instance of the ServiceProviderLocator class.
public ServiceProviderLocator ( ) : System.Collections.Generic
return System.Collections.Generic