Property | Type | Description | |
---|---|---|---|
Default | ServiceProviderQueryHandler |
Method | Description | |
---|---|---|
FindService ( object context, |
Attempts to locate a service of a given type based on a given context. If the service is not available, a null reference is returned.
|
|
GetService ( object context, |
Gets a service of a given type based on a given context. If the service is not available, an exception is thrown.
|
|
GetServiceProvider ( object context ) : IServiceProvider |
Gets an IServiceProvider object based on a supplied context and which can be used to request further services.
|
Method | Description | |
---|---|---|
CreateServiceContainer ( object context ) : IServiceProvider | ||
ServiceCenter ( ) : System |
public static FindService ( object context, |
||
context | object | |
serviceType | ||
return | object |
public static GetService ( object context, |
||
context | object | |
serviceType | ||
return | object |
public static GetServiceProvider ( object context ) : IServiceProvider | ||
context | object | |
return | IServiceProvider |