/// <summary> /// Constructor. /// </summary> /// <param name="nextComponent">The next component in the pipeline (or <c>null</c>).</param> public CompressResponseComponent(ComponentFunc nextComponent) { this.nextComponent = nextComponent; }
public Fixer Use(ComponentFunc component) { _funcs.Push(component); return(this); }
/// <summary> /// Constructor. /// </summary> /// <param name="nextComponent">The next component in the pipeline (or <c>null</c>).</param> /// <param name="action">The action to be performed.</param> /// <param name="instance">The object to be associated with this component.</param> public RunWithComponent(ComponentFunc nextComponent, Func <IOwinContext, T, Task> action, T instance) { this.nextComponent = nextComponent; this.instance = instance; this.action = action; }