Interface ITweakInput<TInput>
Tweak API to reconfigure a value pre-processing in a service / method call.
Whatever code you write, always assume that this interface can be replaced with another name which will then provide more tweaks. So never use the interface-name in your code.
[PublicApi]
public interface ITweakInput<TInput>
Type Parameters
TInput
Remarks
Added in v17
Methods
Input(Func<TInput, TInput>, NoParamOrder)
Simple value tweak, to inject a different value for use instead of the original.
ITweakInput<TInput> Input(Func<TInput, TInput> func, NoParamOrder protector = default)
Parameters
func
Func<TInput, TInput>function to generate a replacement value, but first providing the initial value
protector
NoParamOrder
Returns
- ITweakInput<TInput>
Input(Func<TInput>, NoParamOrder)
Simple value tweak, to inject a different value for use instead of the original.
ITweakInput<TInput> Input(Func<TInput> func, NoParamOrder protector = default)
Parameters
func
Func<TInput>function to generate a replacement value
protector
NoParamOrder
Returns
- ITweakInput<TInput>
Input(TInput, NoParamOrder)
Simple value tweak, to inject a different value for use instead of the original.
ITweakInput<TInput> Input(TInput replace, NoParamOrder protector = default)
Parameters
replace
TInputreplacement value to use instead
protector
NoParamOrder
Returns
- ITweakInput<TInput>