C# Class Griffin.Container.ComponentRegistration

Information about a specific component
Used to create the build plan
Exibir arquivo Open project: jgauffin/Griffin.Container Class Usage Examples

Public Methods

Method Description
AddService ( Type service ) : void

Add a new service.

AddServices ( IServiceFilter serviceFilter ) : void

Add all services which the concrete type implements

ComponentRegistration ( Type concreteType, Lifetime lifetime ) : System

Initializes a new instance of the ComponentRegistration class.

Implements ( Type service ) : bool

Checks if the current concrete implements the specified class.

Method Details

AddService() public method

Add a new service.
public AddService ( Type service ) : void
service System.Type Service that the class implementes.
return void

AddServices() public method

Add all services which the concrete type implements
public AddServices ( IServiceFilter serviceFilter ) : void
serviceFilter IServiceFilter Used to filter implemented services.
return void

ComponentRegistration() public method

Initializes a new instance of the ComponentRegistration class.
public ComponentRegistration ( Type concreteType, Lifetime lifetime ) : System
concreteType System.Type Type to create.
lifetime Lifetime The lifetime.
return System

Implements() public method

Checks if the current concrete implements the specified class.
public Implements ( Type service ) : bool
service System.Type Service to check for
return bool