Redigera

Dela via


KeyedServiceCollection<TKey,TService> Class

Definition

Represents a collection of services with a given key type.

public class KeyedServiceCollection<TKey,TService> : Orleans.Runtime.IKeyedServiceCollection<TKey,TService> where TService : class
type KeyedServiceCollection<'Key, 'Service (requires 'Service : null)> = class
    interface IKeyedServiceCollection<'Key, 'Service (requires 'Service : null)>
Public Class KeyedServiceCollection(Of TKey, TService)
Implements IKeyedServiceCollection(Of TKey, TService)

Type Parameters

TKey

The type of the key.

TService

The type of the service.

Inheritance
KeyedServiceCollection<TKey,TService>
Implements

Constructors

KeyedServiceCollection<TKey,TService>()

Methods

GetService(IServiceProvider, TKey)

Gets the service with the specified key.

GetServices(IServiceProvider)

Gets all services from this collection.

Applies to

See also