摘要:
1.获取ip和端口 string str = (Request.HttpContext.Connection.LocalIpAddress.MapToIPv4().ToString() + ":" + Request.HttpContext.Connection.LocalPort); 输出str, 阅读全文
摘要:
1. NuGet包引用 Microsoft.AspNetCore.Session 2. Startup.cs中的相应方法加入些代码: public void ConfigureServices(IServiceCollection services) { //添加session services.A 阅读全文