public static string CreatePath(this HttpContextBase httpContext, string uri, Nparams args) { if (httpContext == null) { throw new ArgumentNullException("httpContext"); } var uriContext = httpContext.Get <UriContextBase>(); if (uriContext == null) { throw new NullReferenceException("uriContext"); } return(uriContext.CreatePath(uri, args)); }
public static UriContextBase ParseRequestUriWithUriSchema(this HttpContextBase httpContext) { return(ParseRequestUriWithUriSchema(httpContext, httpContext.Get <UriSchemaBase>())); }