Edit

Share via


KeyedSingletonService<TKey,TService> Constructor

Definition

Initializes a new instance of the KeyedSingletonService<TKey,TService> class.

public KeyedSingletonService (TKey key, IServiceProvider services, Func<IServiceProvider,TKey,TService> factory);
new Orleans.Runtime.KeyedSingletonService<'Key, 'Service (requires 'Service : null)> : 'Key * IServiceProvider * Func<IServiceProvider, 'Key, 'Service (requires 'Service : null)> -> Orleans.Runtime.KeyedSingletonService<'Key, 'Service (requires 'Service : null)>
Public Sub New (key As TKey, services As IServiceProvider, factory As Func(Of IServiceProvider, TKey, TService))

Parameters

key
TKey

The key.

services
IServiceProvider

The services.

factory
Func<IServiceProvider,TKey,TService>

The factory.

Applies to