C# Class Guidelines.Ioc.StructureMap.Adaptors.StructureMapServiceContainer

Container that will use MSServiceLocator to get types. Does not implement changing the registry.
Inheritance: IServiceContainer
显示文件 Open project: basicdays/Guidelines

Public Methods

Method Description
AddService ( Type serviceType, ServiceCreatorCallback callback ) : void

Not implemented.

AddService ( Type serviceType, ServiceCreatorCallback callback, bool promote ) : void

Adds a delegate to a service type.

AddService ( Type serviceType, object serviceInstance ) : void

Not implemented.

AddService ( Type serviceType, object serviceInstance, bool promote ) : void

Not implemented.

GetService ( Type serviceType ) : object

Gets serviceType from MSServiceLocator.

RemoveService ( Type serviceType ) : void

Removes the service from the container, but Structuremap does not support this.

RemoveService ( Type serviceType, bool promote ) : void

Removes the service from the container, but Structuremap does not support this.

StructureMapServiceContainer ( IContainer container ) : System

Method Details

AddService() public method

Not implemented.
public AddService ( Type serviceType, ServiceCreatorCallback callback ) : void
serviceType System.Type
callback ServiceCreatorCallback
return void

AddService() public method

Adds a delegate to a service type.
public AddService ( Type serviceType, ServiceCreatorCallback callback, bool promote ) : void
serviceType System.Type
callback ServiceCreatorCallback
promote bool
return void

AddService() public method

Not implemented.
public AddService ( Type serviceType, object serviceInstance ) : void
serviceType System.Type
serviceInstance object
return void

AddService() public method

Not implemented.
public AddService ( Type serviceType, object serviceInstance, bool promote ) : void
serviceType System.Type
serviceInstance object
promote bool
return void

GetService() public method

Gets serviceType from MSServiceLocator.
public GetService ( Type serviceType ) : object
serviceType System.Type The type to retrieve from the standard service locator.
return object

RemoveService() public method

Removes the service from the container, but Structuremap does not support this.
Every time this is called.
public RemoveService ( Type serviceType ) : void
serviceType System.Type Service type to remove from the container.
return void

RemoveService() public method

Removes the service from the container, but Structuremap does not support this.
Every time this is called.
public RemoveService ( Type serviceType, bool promote ) : void
serviceType System.Type Service type to remove from the container.
promote bool Not used
return void

StructureMapServiceContainer() public method

public StructureMapServiceContainer ( IContainer container ) : System
container IContainer
return System