public IController CreateController(RequestContext requestContext, string controllerName)
        {
            if (string.IsNullOrEmpty(controllerName))
            {
                throw new ArgumentNullException("controllerName");
            }

            WebProcessHeader.BindHeadersToPrincipal <Identity>(Options);
            new WebProcessBreadCrumb(Options.BreadCrumbOption).Process(requestContext, ControllerType(requestContext, controllerName));

            return(Create(requestContext, controllerName));
        }
예제 #2
0
        protected override Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
        {
            WebProcessHeader.BindHeadersToPrincipal <Identity>(Options);

            return(base.SendAsync(request, cancellationToken));
        }