Property | Type | Description |
---|
Method | Description | |
---|---|---|
AddFactory ( |
Adds an IFactory instance and associates it with the given
|
|
AddFactory ( string serviceName, |
Adds an IFactory instance and associates it with the given
|
|
Contains ( |
Determines whether or not the given serviceType can be instantiated by the container.
|
|
Contains ( string serviceName, |
Determines whether or not a service can be created using the given
|
|
GetService ( |
Overridden. Causes the container to instantiate the service with the given This overload of the |
|
GetService ( string serviceName, |
Causes the container to instantiate the service with the given
|
|
ServiceContainer ( ) : System |
Initializes the container with the default services.
|
|
ServiceContainer ( IGetService getServiceBehavior, IFactoryStorage factoryStorage ) : System |
Initializes the container with a custom ICreateInstance type.
|
public AddFactory ( |
||
serviceType | The service type to associate with the factory | |
additionalParameterTypes | IEnumerable |
The list of additional parameters that this factory type will support. |
factory | IFactory | The |
return | void |
public AddFactory ( string serviceName, |
||
serviceName | string | The name of the service to associate with the given |
serviceType | The type of service that the factory will be able to create. | |
additionalParameterTypes | IEnumerable |
The list of additional parameters that this factory type will support. |
factory | IFactory | The |
return | void |
public Contains ( |
||
serviceType | The type of service to instantiate. | |
additionalParameterTypes | IEnumerable |
The list of additional parameters that this factory type will support. |
return | bool |
public Contains ( string serviceName, |
||
serviceName | string | The name of the service to associate with the given |
serviceType | The type of service that the factory will be able to create. | |
additionalParameterTypes | IEnumerable |
The list of additional parameters that this factory type will support. |
return | bool |
public GetService ( |
||
serviceType | The service type to instantiate. | |
return | object |
public GetService ( string serviceName, |
||
serviceName | string | The name of the service to instantiate. |
serviceType | The service type to instantiate. | |
return | object |
public ServiceContainer ( IGetService getServiceBehavior, IFactoryStorage factoryStorage ) : System | ||
getServiceBehavior | IGetService | The instance that will be responsible for generating service instances. |
factoryStorage | IFactoryStorage | The |
return | System |