語言

TransactionHandlerResolver.GetServices(Type, Object) 方法

定義

若給定型別為 Func<TResult>,則該解析器將嘗試返回服務 to use,否則將回傳空列舉。 當給定型別為 Func<TResult>時,則該鍵預期為 ExecutionStrategyKey。

public System.Collections.Generic.IEnumerable<object> GetServices(Type type, object key);
abstract member GetServices : Type * obj -> seq<obj>
override this.GetServices : Type * obj -> seq<obj>

參數

type
Type

要解決的服務類型。

key
Object

一把用來判斷服務是否要返回的鑰匙。

傳回

一個可 Func<TResult>枚舉的 ,或為空枚舉。

實作

適用於