语言

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

定义

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

实现

适用于