using Microsoft.AspNetCore.Http; namespace SportsStore.Infrastructure { public static class UrlExtensions { public static string PathAndQuery(this HttpRequest request) => request.QueryString.HasValue ? $"{request.Path}{request.QueryString}" : request.Path.ToString(); } }
Asp.net Core 源码-UrlExtensions
猜你喜欢
转载自www.cnblogs.com/YrRoom/p/11070226.html
今日推荐
周排行