KeyedService<TKey,TService> Constructors
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.
Overloads
KeyedService<TKey,TService>(TKey, Func<IServiceProvider,TKey,TService>)
Initializes a new instance of the KeyedService<TKey,TService> class.
public KeyedService (TKey key, Func<IServiceProvider,TKey,TService> factory);
new Orleans.Runtime.KeyedService<'Key, 'Service (requires 'Service : null)> : 'Key * Func<IServiceProvider, 'Key, 'Service (requires 'Service : null)> -> Orleans.Runtime.KeyedService<'Key, 'Service (requires 'Service : null)>
Public Sub New (key As TKey, factory As Func(Of IServiceProvider, TKey, TService))
Parameters
- key
- TKey
The key.
- factory
- Func<IServiceProvider,TKey,TService>
The factory.
Applies to
KeyedService<TKey,TService>(TKey, IServiceProvider, Func<IServiceProvider,TKey,TService>)
- Source:
- KeyedService.cs
public KeyedService (TKey key, IServiceProvider services, Func<IServiceProvider,TKey,TService> factory);
new Orleans.Runtime.KeyedService<'Key, 'Service (requires 'Service : null)> : 'Key * IServiceProvider * Func<IServiceProvider, 'Key, 'Service (requires 'Service : null)> -> Orleans.Runtime.KeyedService<'Key, 'Service (requires 'Service : null)>
Public Sub New (key As TKey, services As IServiceProvider, factory As Func(Of IServiceProvider, TKey, TService))
Parameters
- key
- TKey
- services
- IServiceProvider
- factory
- Func<IServiceProvider,TKey,TService>