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

Container that will use MSServiceLocator to get types. Does not implement changing the registry.
Inheritance: IServiceContainer
Afficher le fichier Open project: basicdays/Guidelines

Méthodes publiques

Méthode 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 méthode

Not implemented.
public AddService ( Type serviceType, ServiceCreatorCallback callback ) : void
serviceType System.Type
callback ServiceCreatorCallback
Résultat void

AddService() public méthode

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

AddService() public méthode

Not implemented.
public AddService ( Type serviceType, object serviceInstance ) : void
serviceType System.Type
serviceInstance object
Résultat void

AddService() public méthode

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

GetService() public méthode

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

RemoveService() public méthode

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.
Résultat void

RemoveService() public méthode

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
Résultat void

StructureMapServiceContainer() public méthode

public StructureMapServiceContainer ( IContainer container ) : System
container IContainer
Résultat System