Table of Contents

ConfigureRevertExchange Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Patterns.cs

ConfigureRevertExchange<TSource, TResult>(TSource, Action<TSource, TResult>)

Returns a delegate that will be initialized by initializer with the values from options.

public static Action<TResult> ConfigureRevertExchange<TSource, TResult>(TSource options, Action<TSource, TResult> initializer = null) where TSource : class, IParameterObject, new() where TResult : class, new()

Parameters

options TSource

The configured options to apply an instance of TResult.

initializer Action<TSource, TResult>

The delegate that will initialize a default instance of TResult with the values from options.

Returns

Action<TResult>

An Action<T> with the values from options.

Type Parameters

TSource

The type of the configuration options having a default constructor.

TResult

The type of the configuration options having a default constructor.

Exceptions

ArgumentNullException

options cannot be null -or- initializer cannot be null.