Exemplo n.º 1
0
        public AspNetServiceArguments(RequestContext requestContext)
        {
            var currentRequest = new AspNetHttpRequest(requestContext.HttpContext.Request, requestContext.HttpContext.Response);

            With(requestContext.RouteData);
            With(requestContext.HttpContext);
            //With(requestContext.HttpContext.Session);


            With <IHttpRequest>(currentRequest);

            With <IHttpResponse>(new AspNetHttpResponse(requestContext.HttpContext.Response));
        }
Exemplo n.º 2
0
        public AspNetServiceArguments(RequestContext requestContext)
        {
            var currentRequest = new AspNetHttpRequest(requestContext.HttpContext.Request, requestContext.HttpContext.Response);

            With(requestContext.RouteData);
            With(requestContext.HttpContext);
            //With(requestContext.HttpContext.Session);

            
            With<IHttpRequest>(currentRequest);

            With<IHttpResponse>(new AspNetHttpResponse(requestContext.HttpContext.Response));
        }
Exemplo n.º 3
0
        public AspNetServiceArguments(RequestContext requestContext)
        {
            var currentRequest = new AspNetHttpRequest(requestContext.HttpContext.Request, requestContext.HttpContext.Response);

            if (requestContext.HttpContext.Items.Contains(CHAIN_EXECUTION_LOG))
            {
                var log = requestContext.HttpContext.Items[CHAIN_EXECUTION_LOG].As <IChainExecutionLog>();
                With(log);
            }

            With(requestContext.RouteData);
            With(requestContext.HttpContext);
            //With(requestContext.HttpContext.Session);


            With <IHttpRequest>(currentRequest);

            With <IHttpResponse>(new AspNetHttpResponse(requestContext.HttpContext.Response));
        }
        public AspNetServiceArguments(RequestContext requestContext)
        {
            var currentRequest = new AspNetHttpRequest(requestContext.HttpContext.Request, requestContext.HttpContext.Response);

            if (requestContext.HttpContext.Items.Contains(CHAIN_EXECUTION_LOG))
            {
                var log = requestContext.HttpContext.Items[CHAIN_EXECUTION_LOG].As<IChainExecutionLog>();
                Set(log);
            }

            Set(requestContext.RouteData);
            Set(requestContext.HttpContext);
            //With(requestContext.HttpContext.Session);

            
            Set<IHttpRequest>(currentRequest);

            Set<IHttpResponse>(new AspNetHttpResponse(requestContext.HttpContext.Response));
        }