Метод | Описание | |
---|---|---|
Contains ( |
Determines whether or not the container can instantiate the given serviceType.
|
|
GenericInstanceContainer ( string serviceName, |
Initializes a new instance of the GenericInstanceContainer class.
|
|
GetAllInstances ( |
Returns all generic instances that match the given serviceType.
|
|
GetInstance ( |
Attempts to get an instance of the given serviceType.
|
Метод | Описание | |
---|---|---|
Register ( |
Registers the generic service type.
|
Метод | Описание | |
---|---|---|
BuildBaseContainer ( ) : void |
public Contains ( |
||
serviceType | The service type. | |
key | string | The name of the service |
Результат | bool |
public GenericInstanceContainer ( string serviceName, |
||
serviceName | string | The name of the generic service. |
genericServiceType | The generic type that represents the service type. | |
genericTypeImplementation | The type that represents the generic service type implementation. | |
dependencyContainer | IDependencyContainer | The dependency map that describes the list of services that will be available to the instantiated generic types. |
Результат | System |
public GetAllInstances ( |
||
serviceType | The service type. | |
Результат | IEnumerable |
public GetInstance ( |
||
serviceType | The service type. | |
key | string | The service name. |
Результат | object |
protected Register ( |
||
serviceType | The service type that will be registered. | |
concreteType | The generic concrete type that will implement the generic service type. | |
map | DependencyMap | The dependency map that contains all the dependencies. |
Результат | void |