From 60d9a937fe048801d9495b6df343205924f424e2 Mon Sep 17 00:00:00 2001 From: token <61819790+239573049@users.noreply.github.com> Date: Fri, 29 Mar 2024 09:02:05 +0800 Subject: [PATCH] =?UTF-8?q?MapMethods=20=E8=99=9A=E6=8B=9F=E5=8C=96?= =?UTF-8?q?=EF=BC=8C=E4=BB=A5=E4=BE=BF=E9=87=8D=E5=86=99=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E7=AE=A1=E9=81=93=E5=AE=9E=E7=8E=B0=20(#707)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Masa.Contrib.Service.MinimalAPIs/ServiceBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Contrib/Service/Masa.Contrib.Service.MinimalAPIs/ServiceBase.cs b/src/Contrib/Service/Masa.Contrib.Service.MinimalAPIs/ServiceBase.cs index c7c3216db..c7526023d 100644 --- a/src/Contrib/Service/Masa.Contrib.Service.MinimalAPIs/ServiceBase.cs +++ b/src/Contrib/Service/Masa.Contrib.Service.MinimalAPIs/ServiceBase.cs @@ -123,7 +123,7 @@ protected virtual string GetBaseUri(ServiceRouteOptions globalOptions, Pluraliza return string.Join('/', list.Where(x => !string.IsNullOrWhiteSpace(x)).Select(u => u.Trim('/'))); } - RouteHandlerBuilder MapMethods(ServiceRouteOptions globalOptions, string pattern, string? httpMethod, Delegate handler) + protected virtual RouteHandlerBuilder MapMethods(ServiceRouteOptions globalOptions, string pattern, string? httpMethod, Delegate handler) { if (!string.IsNullOrWhiteSpace(httpMethod)) return App.MapMethods(pattern, new[]