Table of Contents

Class DeploymentStrategy0MatchExtensions

Namespace
Invex.StructuredText.AzureDevopsPipelines.DevopsPipelineModel.Jobs
Assembly
Invex.StructuredText.AzureDevopsPipelines.dll
public static class DeploymentStrategy0MatchExtensions
Inheritance
object
DeploymentStrategy0MatchExtensions

Methods

MatchAsync(Task<DeploymentStrategy>, Action<RunOnce>, Action<Rolling>, Action<Canary>)

public static Task MatchAsync(this Task<DeploymentStrategy> unionTask, Action<DeploymentStrategy.RunOnce> runOnce, Action<DeploymentStrategy.Rolling> rolling, Action<DeploymentStrategy.Canary> canary)

Parameters

unionTask Task<DeploymentStrategy>
runOnce Action<DeploymentStrategy.RunOnce>
rolling Action<DeploymentStrategy.Rolling>
canary Action<DeploymentStrategy.Canary>

Returns

Task

MatchAsync(ValueTask<DeploymentStrategy>, Action<RunOnce>, Action<Rolling>, Action<Canary>)

public static ValueTask MatchAsync(this ValueTask<DeploymentStrategy> unionTask, Action<DeploymentStrategy.RunOnce> runOnce, Action<DeploymentStrategy.Rolling> rolling, Action<DeploymentStrategy.Canary> canary)

Parameters

unionTask ValueTask<DeploymentStrategy>
runOnce Action<DeploymentStrategy.RunOnce>
rolling Action<DeploymentStrategy.Rolling>
canary Action<DeploymentStrategy.Canary>

Returns

ValueTask

MatchAsync<TMatchOutput>(Task<DeploymentStrategy>, Func<RunOnce, TMatchOutput>, Func<Rolling, TMatchOutput>, Func<Canary, TMatchOutput>)

public static Task<TMatchOutput> MatchAsync<TMatchOutput>(this Task<DeploymentStrategy> unionTask, Func<DeploymentStrategy.RunOnce, TMatchOutput> runOnce, Func<DeploymentStrategy.Rolling, TMatchOutput> rolling, Func<DeploymentStrategy.Canary, TMatchOutput> canary)

Parameters

unionTask Task<DeploymentStrategy>
runOnce Func<DeploymentStrategy.RunOnce, TMatchOutput>
rolling Func<DeploymentStrategy.Rolling, TMatchOutput>
canary Func<DeploymentStrategy.Canary, TMatchOutput>

Returns

Task<TMatchOutput>

Type Parameters

TMatchOutput

MatchAsync<TMatchOutput>(ValueTask<DeploymentStrategy>, Func<RunOnce, TMatchOutput>, Func<Rolling, TMatchOutput>, Func<Canary, TMatchOutput>)

public static ValueTask<TMatchOutput> MatchAsync<TMatchOutput>(this ValueTask<DeploymentStrategy> unionTask, Func<DeploymentStrategy.RunOnce, TMatchOutput> runOnce, Func<DeploymentStrategy.Rolling, TMatchOutput> rolling, Func<DeploymentStrategy.Canary, TMatchOutput> canary)

Parameters

unionTask ValueTask<DeploymentStrategy>
runOnce Func<DeploymentStrategy.RunOnce, TMatchOutput>
rolling Func<DeploymentStrategy.Rolling, TMatchOutput>
canary Func<DeploymentStrategy.Canary, TMatchOutput>

Returns

ValueTask<TMatchOutput>

Type Parameters

TMatchOutput

MatchCanaryAsync(Task<DeploymentStrategy>, Action<Canary>, Action)

public static Task MatchCanaryAsync(this Task<DeploymentStrategy> unionTask, Action<DeploymentStrategy.Canary> canary, Action @else)

Parameters

unionTask Task<DeploymentStrategy>
canary Action<DeploymentStrategy.Canary>
else Action

Returns

Task

MatchCanaryAsync(ValueTask<DeploymentStrategy>, Action<Canary>, Action)

public static ValueTask MatchCanaryAsync(this ValueTask<DeploymentStrategy> unionTask, Action<DeploymentStrategy.Canary> canary, Action @else)

Parameters

unionTask ValueTask<DeploymentStrategy>
canary Action<DeploymentStrategy.Canary>
else Action

Returns

ValueTask

MatchCanaryAsync<TMatchOutput>(Task<DeploymentStrategy>, Func<Canary, TMatchOutput>, Func<TMatchOutput>)

public static Task<TMatchOutput> MatchCanaryAsync<TMatchOutput>(this Task<DeploymentStrategy> unionTask, Func<DeploymentStrategy.Canary, TMatchOutput> canary, Func<TMatchOutput> @else)

Parameters

unionTask Task<DeploymentStrategy>
canary Func<DeploymentStrategy.Canary, TMatchOutput>
else Func<TMatchOutput>

Returns

Task<TMatchOutput>

Type Parameters

TMatchOutput

MatchCanaryAsync<TMatchOutput>(ValueTask<DeploymentStrategy>, Func<Canary, TMatchOutput>, Func<TMatchOutput>)

public static ValueTask<TMatchOutput> MatchCanaryAsync<TMatchOutput>(this ValueTask<DeploymentStrategy> unionTask, Func<DeploymentStrategy.Canary, TMatchOutput> canary, Func<TMatchOutput> @else)

Parameters

unionTask ValueTask<DeploymentStrategy>
canary Func<DeploymentStrategy.Canary, TMatchOutput>
else Func<TMatchOutput>

Returns

ValueTask<TMatchOutput>

Type Parameters

TMatchOutput

MatchRollingAsync(Task<DeploymentStrategy>, Action<Rolling>, Action)

public static Task MatchRollingAsync(this Task<DeploymentStrategy> unionTask, Action<DeploymentStrategy.Rolling> rolling, Action @else)

Parameters

unionTask Task<DeploymentStrategy>
rolling Action<DeploymentStrategy.Rolling>
else Action

Returns

Task

MatchRollingAsync(ValueTask<DeploymentStrategy>, Action<Rolling>, Action)

public static ValueTask MatchRollingAsync(this ValueTask<DeploymentStrategy> unionTask, Action<DeploymentStrategy.Rolling> rolling, Action @else)

Parameters

unionTask ValueTask<DeploymentStrategy>
rolling Action<DeploymentStrategy.Rolling>
else Action

Returns

ValueTask

MatchRollingAsync<TMatchOutput>(Task<DeploymentStrategy>, Func<Rolling, TMatchOutput>, Func<TMatchOutput>)

public static Task<TMatchOutput> MatchRollingAsync<TMatchOutput>(this Task<DeploymentStrategy> unionTask, Func<DeploymentStrategy.Rolling, TMatchOutput> rolling, Func<TMatchOutput> @else)

Parameters

unionTask Task<DeploymentStrategy>
rolling Func<DeploymentStrategy.Rolling, TMatchOutput>
else Func<TMatchOutput>

Returns

Task<TMatchOutput>

Type Parameters

TMatchOutput

MatchRollingAsync<TMatchOutput>(ValueTask<DeploymentStrategy>, Func<Rolling, TMatchOutput>, Func<TMatchOutput>)

public static ValueTask<TMatchOutput> MatchRollingAsync<TMatchOutput>(this ValueTask<DeploymentStrategy> unionTask, Func<DeploymentStrategy.Rolling, TMatchOutput> rolling, Func<TMatchOutput> @else)

Parameters

unionTask ValueTask<DeploymentStrategy>
rolling Func<DeploymentStrategy.Rolling, TMatchOutput>
else Func<TMatchOutput>

Returns

ValueTask<TMatchOutput>

Type Parameters

TMatchOutput

MatchRunOnceAsync(Task<DeploymentStrategy>, Action<RunOnce>, Action)

public static Task MatchRunOnceAsync(this Task<DeploymentStrategy> unionTask, Action<DeploymentStrategy.RunOnce> runOnce, Action @else)

Parameters

unionTask Task<DeploymentStrategy>
runOnce Action<DeploymentStrategy.RunOnce>
else Action

Returns

Task

MatchRunOnceAsync(ValueTask<DeploymentStrategy>, Action<RunOnce>, Action)

public static ValueTask MatchRunOnceAsync(this ValueTask<DeploymentStrategy> unionTask, Action<DeploymentStrategy.RunOnce> runOnce, Action @else)

Parameters

unionTask ValueTask<DeploymentStrategy>
runOnce Action<DeploymentStrategy.RunOnce>
else Action

Returns

ValueTask

MatchRunOnceAsync<TMatchOutput>(Task<DeploymentStrategy>, Func<RunOnce, TMatchOutput>, Func<TMatchOutput>)

public static Task<TMatchOutput> MatchRunOnceAsync<TMatchOutput>(this Task<DeploymentStrategy> unionTask, Func<DeploymentStrategy.RunOnce, TMatchOutput> runOnce, Func<TMatchOutput> @else)

Parameters

unionTask Task<DeploymentStrategy>
runOnce Func<DeploymentStrategy.RunOnce, TMatchOutput>
else Func<TMatchOutput>

Returns

Task<TMatchOutput>

Type Parameters

TMatchOutput

MatchRunOnceAsync<TMatchOutput>(ValueTask<DeploymentStrategy>, Func<RunOnce, TMatchOutput>, Func<TMatchOutput>)

public static ValueTask<TMatchOutput> MatchRunOnceAsync<TMatchOutput>(this ValueTask<DeploymentStrategy> unionTask, Func<DeploymentStrategy.RunOnce, TMatchOutput> runOnce, Func<TMatchOutput> @else)

Parameters

unionTask ValueTask<DeploymentStrategy>
runOnce Func<DeploymentStrategy.RunOnce, TMatchOutput>
else Func<TMatchOutput>

Returns

ValueTask<TMatchOutput>

Type Parameters

TMatchOutput