Пример #1
0
        /// <summary>
        /// Processes (build web-page and send to client, process current page state) the current web-page
        /// </summary>
        /// <param name="resolver">The DI container resolver.</param>
        /// <param name="context">The context.</param>
        public RequestHandlingResult ProcessPage(IDIResolver resolver, HttpContext context)
        {
            context.Response.ContentType = "text/html";
            _redirector.PreviousPageUrl  = context.Request.GetEncodedUrl();

            return(RequestHandlingResult.HandledResult(_responseWriter.WriteAsync(_pageBuilder.Build(resolver),
                                                                                  context.Response)));
        }
Пример #2
0
        /// <summary>
        /// Processes (build web-page and send to client, process current page state) the current web-page
        /// </summary>
        /// <param name="resolver">The DI container resolver.</param>
        /// <param name="context">The context.</param>
        public async Task <RequestHandlingStatus> ProcessPage(IDIResolver resolver, HttpContext context)
        {
            context.Response.ContentType = "text/html";

            await _responseWriter.WriteAsync(_pageBuilder.Build(resolver), context.Response);

            return(RequestHandlingStatus.RequestWasHandled);
        }
Пример #3
0
        /// <summary>
        /// Processes (build web-page and send to client, process current page state) the current web-page
        /// </summary>
        /// <param name="containerProvider">The DI container provider.</param>
        /// <param name="context">The context.</param>
        public Task ProcessPage(IDIContainerProvider containerProvider, IOwinContext context)
        {
            var task = _responseWriter.WriteAsync(_pageBuilder.Build(containerProvider), context.Response);

            _redirector.PreviousPageUrl = context.Request.Uri.AbsoluteUri;

            return(task);
        }
Пример #4
0
        /// <summary>
        /// Processes (build web-page and send to client, process current page state) the current web-page
        /// </summary>
        /// <param name="resolver">The DI container resolver.</param>
        /// <param name="context">The context.</param>
        public async Task <RequestHandlingStatus> ProcessPage(IDIResolver resolver, HttpContext context)
        {
            context.Response.ContentType = "text/html";
            _redirector.PreviousPageUrl  = context.Request.GetEncodedUrl();

            await _responseWriter.WriteAsync(_pageBuilder.Build(resolver), context.Response);

            return(RequestHandlingStatus.RequestWasHandled);
        }