TransactionHandlerResolver.GetServices(Type, Object) 方法

定义

如果给定的类型为 Func<TResult>,则此解析程序将尝试返回要使用的服务,否则将返回空枚举。 当给定类型为 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>空枚举。

实现

适用于