public static GetApplicationUrl ( this httpReq ) : string | ||
httpReq | this | |
return | string |
public static string GetApplicationUrl(this IRequest httpReq)
{
var url = new Uri(httpReq.AbsoluteUri);
var baseUrl = url.GetLeftAuthority();
var appUrl = baseUrl.CombineWith(HostContext.Config.HandlerFactoryPath);
return appUrl;
}