ExecutionStrategyResolver<T>.GetServices(Type, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果给定的类型为 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>空枚举。