Exemplo n.º 1
0
 /// <summary>
 /// Create a new FiftyOneMiddleware object.
 /// </summary>
 /// <param name="next">
 /// The next component in the Pipeline
 /// </param>
 /// <param name="pipelineResultService">
 /// A service that will determine the device making the request
 /// and store details of the device against the HttpContext for
 /// use further down the Pipeline
 /// </param>
 /// <param name="jsService">
 /// A service that can serve the 51Degrees JavaScript if needed
 /// </param>
 public FiftyOneMiddleware(RequestDelegate next,
                           IPipelineResultService pipelineResultService,
                           IFiftyOneJSService jsService)
 {
     Next = next;
     PipelineResultService = pipelineResultService;
     JsService             = jsService;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new FiftyOneMiddleware object.
 /// </summary>
 /// <param name="next">
 /// The next component in the Pipeline
 /// </param>
 /// <param name="pipelineResultService">
 /// A service that will determine the device making the request
 /// and store details of the device against the HttpContext for
 /// use further down the Pipeline
 /// </param>
 /// <param name="jsService">
 /// A service that can serve the 51Degrees JavaScript if needed
 /// </param>
 /// <param name="flowDataProvider">
 /// A service to get FlowData Object from response
 /// </param>
 /// <param name="headerService">
 /// A service that can set headers in the response based on
 /// data from an <see cref="ISetHeadersElement"/>.
 /// </param>
 public FiftyOneMiddleware(RequestDelegate next,
                           IPipelineResultService pipelineResultService,
                           IFiftyOneJSService jsService,
                           IFlowDataProvider flowDataProvider,
                           ISetHeadersService headerService)
 {
     Next = next;
     PipelineResultService = pipelineResultService;
     JsService             = jsService;
     FlowDataProvider      = flowDataProvider;
     HeaderService         = headerService;
 }