共用方式為


ExecutionStrategyResolver<T>.GetService(Type, Object) 方法

定義

如果指定的類型為 Func<TResult> ,則此解析程式會嘗試傳回要使用的服務,否則會傳回 null。 當指定的類型為 Func{IExecutionStrategy}時,索引鍵必須是 ExecutionStrategyKey

public object GetService (Type type, object key);
abstract member GetService : Type * obj -> obj
override this.GetService : Type * obj -> obj

參數

type
Type

要解析的服務類型。

key
Object

用來判斷要傳回之服務的金鑰。

傳回

Func<TResult> 或 null。

實作

適用於