.NnetFormWork 嵌入WebApi
摘要:1 添加服务类 WebServiceHost using System.ServiceModel; using System.ServiceModel.Web; using System.Web.Services.Protocols; [ServiceContract(Namespace = "ht
阅读全文
posted @
2024-03-07 18:14
永恒921
阅读(51)
推荐(0)
WPF(.netCore) 嵌入WebApi服务
摘要:1 从NUGET添加组件“Swashbuckle.AspNetCore” 相关使用代码 var builder = WebApplication.CreateBuilder(); builder.Services.AddControllers(); var app = builder.Build()
阅读全文
posted @
2024-03-07 17:37
永恒921
阅读(782)
推荐(0)