Düzenle

Aracılığıyla paylaş


IKeyedService<TKey,TService> Interface

Definition

Represents a service which is identified by a key.

public interface IKeyedService<TKey,out TService> : IEquatable<TKey>
type IKeyedService<'Key, 'Service> = interface
    interface IEquatable<'Key>
Public Interface IKeyedService(Of TKey, Out TService)
Implements IEquatable(Of TKey)

Type Parameters

TKey

The key type.

TService

The service type.

This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Derived
Implements
IEquatable<TKey>

Properties

Key

Gets the service key.

Methods

GetService(IServiceProvider)

Gets the service from the service provider.

Applies to