Share via


KeyedSingletonService<TKey,TService,TInstance> 類別

定義

表示單一索引鍵服務。

public class KeyedSingletonService<TKey,TService,TInstance> : Orleans.Runtime.KeyedSingletonService<TKey,TService> where TService : class where TInstance : TService
type KeyedSingletonService<'Key, 'Service, #'Service (requires 'Service : null)> = class
    inherit KeyedSingletonService<'Key, 'Service (requires 'Service : null)>
Public Class KeyedSingletonService(Of TKey, TService, TInstance)
Inherits KeyedSingletonService(Of TKey, TService)

類型參數

TKey

索引鍵的類型。

TService

服務的類型。

TInstance

執行個體的類型。

繼承
KeyedSingletonService<TKey,TService,TInstance>

建構函式

KeyedSingletonService<TKey,TService,TInstance>(TKey, IServiceProvider)

表示單一索引鍵服務。

屬性

Key

取得服務金鑰。

(繼承來源 KeyedSingletonService<TKey,TService>)

方法

Equals(TKey)

表示單一索引鍵服務。

(繼承來源 KeyedSingletonService<TKey,TService>)
GetService(IServiceProvider)

從服務提供者取得服務。

(繼承來源 KeyedSingletonService<TKey,TService>)

適用於

另請參閱