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)); }
protected override Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) { WebProcessHeader.BindHeadersToPrincipal <Identity>(Options); return(base.SendAsync(request, cancellationToken)); }