ServiceHelper Methods |
The ServiceHelper type exposes the following members.
Name | Description | |
---|---|---|
GetOptionalServiceT |
Gets a service from a given service provider, or if the service does not exist.
| |
GetServiceT(IServiceProvider) |
Gets a service from a given service provider, throwing a ServiceNotAvailableException
if the service is not available.
| |
GetServiceT(IServiceProvider, Boolean) |
Gets a service from a given service provider.
| |
GetServiceT(IServiceProvider, String) |
Gets a service from a given service provider, throwing a ServiceNotAvailableException
if the service is not available.
| |
HasService |
Checks whether a service provider has a given service.
| |
LocateService(Type, Object) |
Convenience method for implementing IServiceProvider objects.
If candidate is an instance of serviceType,
returns candidate, otherwise returns .
| |
LocateServiceT(Type, Object, T) |
Convenience method for implementing IServiceProvider objects.
If candidate is an instance of serviceType, returns candidate.
Otherwise, checks additional IServiceProvider objects for any that return a non-null result for serviceType.
Otherwise, returns .
| |
LocateServiceT(Type, Object, IEnumerableT) |
Convenience method for implementing IServiceProvider objects.
If candidate is an instance of serviceType, returns candidate.
Otherwise, checks additional IServiceProvider objects for any that return a non-null result for serviceType.
Otherwise, returns .
|