随笔分类 -  ASP.NET Core

摘要:asp.net core6 wwwroot目录过大后启动慢解决方案: 1、应用中不要启用reloadOnChange config.AddJsonFile(file, optional: true, reloadOnChange: false); 2、启用添加命令行参数 dotnet run xxx 阅读全文
posted @ 2025-06-27 10:21 b̶i̶n̶g̶.̶ 阅读(13) 评论(0) 推荐(0)
摘要:1、安装nuget包 Microsoft.Extensions.Hosting.WindowsServices 2、修改Program.cs public static void Main(string[] args) { var options = new WebApplicationOption 阅读全文
posted @ 2022-07-30 13:39 b̶i̶n̶g̶.̶ 阅读(524) 评论(1) 推荐(0)
摘要:参考:https://www.c-sharpcorner.com/article/publishing-rabbitmq-message-in-asp-net-core/ https://blog.csdn.net/qinyuanpei/article/details/108225448 https 阅读全文
posted @ 2022-04-15 15:30 b̶i̶n̶g̶.̶ 阅读(43) 评论(0) 推荐(0)
摘要:[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] public class MyFilterAttribute : Attribute, IAsyncAuthorizationFilt 阅读全文
posted @ 2021-12-11 10:42 b̶i̶n̶g̶.̶ 阅读(693) 评论(0) 推荐(0)
摘要:public static void Main(string[] args) { CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("zh-CN", true) { DateTimeFormat = { ShortDatePatter 阅读全文
posted @ 2021-07-01 11:45 b̶i̶n̶g̶.̶ 阅读(114) 评论(0) 推荐(0)
摘要:public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHostApplicationLifetime hostApplicationLifetime) { hostApplicationLifetime.Ap 阅读全文
posted @ 2021-06-04 14:00 b̶i̶n̶g̶.̶ 阅读(262) 评论(0) 推荐(0)
摘要:一、中间件实例 /// <summary> /// 请求日志中间件 /// </summary> public class RequestLogMiddleWare { private static readonly object o = new object(); private readonly 阅读全文
posted @ 2020-03-26 10:49 b̶i̶n̶g̶.̶ 阅读(326) 评论(0) 推荐(0)
摘要:原文:https://www.cnblogs.com/Leo_wl/p/7508650.html 阅读全文
posted @ 2020-03-25 16:31 b̶i̶n̶g̶.̶ 阅读(148) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-07 21:25 b̶i̶n̶g̶.̶ 阅读(321) 评论(0) 推荐(0)
摘要:一、阅读前须知 1.使用 jexus整合asp.net core的优点: 1)支持多站点,同一端口可以同时支持任何多的asp.net core应用程序; 2)应用程序启动、停止、重启与站点的启动、停止、重启等操作一致,无需手工管理asp.net core应用程序; 3)具有应用程序崩溃后自动重启功能 阅读全文
posted @ 2016-07-12 11:51 b̶i̶n̶g̶.̶ 阅读(9664) 评论(23) 推荐(28)