KeyedServiceCollection<TKey,TService> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |