Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.
^1:Adapted from the Microsoft .NET IServiceProvider interface.
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createAsyncScope(
) → AsyncDisposable -
Available on ServiceProvider, provided by the ServiceProviderServiceExtensions extension
Creates a new AsyncServiceScope that can be used to resolve scoped services. -
createScope(
) → ServiceScope -
Available on ServiceProvider, provided by the ServiceProviderServiceExtensions extension
Creates a new ServiceScope that can be used to resolve scoped services. -
getKeyedService<
T> (Object? serviceKey) → T? -
Available on ServiceProvider, provided by the ServiceProviderKeyedServiceExtensions extension
Get service of typeTfrom the ServiceProvider. -
getKeyedServices<
T> (Object? serviceKey) → Iterable< T> -
Available on ServiceProvider, provided by the ServiceProviderKeyedServiceExtensions extension
Get an enumeration of services of typeTfrom the ServiceProvider. -
getKeyedServicesFromType(
Type serviceType, Object? serviceKey) → Iterable< Object> -
Available on ServiceProvider, provided by the ServiceProviderKeyedServiceExtensions extension
Get an enumeration of services of typeserviceTypefrom the ServiceProvider. -
getRequiredKeyedService<
T> (Object? serviceKey) → T -
Available on ServiceProvider, provided by the ServiceProviderKeyedServiceExtensions extension
Get service of typeTfrom the ServiceProvider. -
getRequiredKeyedServiceFromType(
Type serviceType, Object? serviceKey) → Object -
Available on ServiceProvider, provided by the ServiceProviderKeyedServiceExtensions extension
/// Get service of typeserviceTypefrom the ServiceProvider. -
getRequiredService<
T> () → T -
Available on ServiceProvider, provided by the ServiceProviderServiceExtensions extension
Get service of typeTfrom the ServiceProvider. -
getRequiredServiceFromType(
Type serviceType) → Object -
Available on ServiceProvider, provided by the ServiceProviderServiceExtensions extension
Get service of typeserviceTypefrom the ServiceProvider. -
getService<
T> () → T? -
Available on ServiceProvider, provided by the ServiceProviderServiceExtensions extension
Get service of typeTfrom the ServiceProvider. -
getServiceFromType(
Type type) → Object? - Gets the service object of the specified type.
-
getServices<
T> () → Iterable< T> -
Available on ServiceProvider, provided by the ServiceProviderServiceExtensions extension
Get an enumeration of services of typeTfrom the ServiceProvider. -
getServicesFromType(
Type serviceType) → Iterable< Object> -
Available on ServiceProvider, provided by the ServiceProviderServiceExtensions extension
Get an enumeration of services of typeserviceTypefrom the ServiceProvider. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited