Exemple #1
0
 public HttpPipelineEmitter(HttpPipelineEmitterOptions options)
 {
     Options = options ?? new HttpPipelineEmitterOptions();
 }
Exemple #2
0
 /// <summary>
 /// join pipeline with a request emitter, create a http pipeline handler.
 /// </summary>
 /// <param name="pipeline">upstream pipeline</param>
 /// <param name="options">emitter options</param>
 /// <returns>http pipeline handler</returns>
 public static IHttpPipelineHandler Emit(this IHttpPipeline pipeline, HttpPipelineEmitterOptions options)
 {
     return(pipeline.Join(new HttpPipelineEmitter(options).AsHandler()));
 }