共用方式為


KeyedSingletonService<TKey,TService> 建構函式

定義

初始化 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))

參數

key
TKey

索引鍵。

services
IServiceProvider

服務。

factory
Func<IServiceProvider,TKey,TService>

Factory。

適用於