Show / Hide Table of Contents

Interface IStrategyResolveService

Represents the service that resolves a strategy depending on the version.

Namespace: Relativity.Testing.Framework.Strategies
Assembly: Relativity.Testing.Framework.dll
Syntax
public interface IStrategyResolveService

Methods

| Improve this Doc View Source

Resolve(Type, Object[], String)

Resolves the most applicable strategy depending on the version.

Declaration
object Resolve(Type strategyType, object[] strategies, string version)
Parameters
Type Name Description
System.Type strategyType

Type of the strategy.

System.Object[] strategies

The strategies.

System.String version

The version.

Returns
Type Description
System.Object

The most applicable strategy or throws StrategyNotFoundException.

Exceptions
Type Condition
StrategyNotFoundException

No applicable strategy found.

| Improve this Doc View Source

Resolve<T>(T[], String)

Resolves the most applicable strategy depending on the version.

Declaration
T Resolve<T>(T[] strategies, string version)
Parameters
Type Name Description
T[] strategies

The strategies.

System.String version

The version.

Returns
Type Description
T

The most applicable strategy or throws StrategyNotFoundException.

Type Parameters
Name Description
T

The type of the strategy.

Exceptions
Type Condition
StrategyNotFoundException

No applicable strategy found.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX