public void AddComponent(Func<IDictionary<string, object>, Task> handler, OwinPipelineStage stage) { Contract.Ensures(handler != null); _handlers.Add(new Middleware() { Handler = handler, Stage = stage }); }
public void AddComponent(Func<IOwinContext, Task> handler, OwinPipelineStage stage = OwinPipelineStage.PreHandlerExecute) { Contract.Ensures(handler != null); _handlers.Add(new Middleware() { Handler = handler, Stage = stage }); }