Condividi tramite


KeyedSingletonService<TKey,TService> Costruttore

Definizione

Inizializza una nuova istanza della classe KeyedSingletonService<TKey,TService>.

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))

Parametri

key
TKey

Chiave.

services
IServiceProvider

Servizi.

factory
Func<IServiceProvider,TKey,TService>

Factory.

Si applica a