Пример #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="nextComponent">The next component in the pipeline (or <c>null</c>).</param>
 public CompressResponseComponent(ComponentFunc nextComponent)
 {
     this.nextComponent = nextComponent;
 }
Пример #2
0
 public Fixer Use(ComponentFunc component)
 {
     _funcs.Push(component);
     return(this);
 }
Пример #3
0
 /// <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;
 }