Esempio n. 1
0
 public EmitterHandler(IHttpPipelineEmitter emitter)
 {
     _emitter = emitter;
 }
Esempio n. 2
0
 /// <summary>
 /// returns the request emitter as a pipeline handler.
 /// </summary>
 /// <param name="emitter">HTTP request distributer</param>
 /// <returns></returns>
 public static IHttpPipelineHandler AsHandler(this IHttpPipelineEmitter emitter)
 {
     return(new EmitterHandler(emitter));
 }
Esempio n. 3
0
 /// <summary>
 /// join pipeline with a request emitter, create a http pipeline handler.
 /// </summary>
 /// <param name="pipeline">upstream pipeline</param>
 /// <param name="emitter">request emitter</param>
 /// <returns>http pipeline handler</returns>
 public static IHttpPipelineHandler Emit(this IHttpPipeline pipeline, IHttpPipelineEmitter emitter)
 {
     return(pipeline.Join(emitter.AsHandler()));
 }