摘要:
1.获取ip和端口 string str = (Request.HttpContext.Connection.LocalIpAddress.MapToIPv4().ToString() + ":" + Request.HttpContext.Connection.LocalPort); 输出str, 阅读全文
posted @ 2019-01-18 16:47
青橙时光
阅读(4779)
评论(0)
推荐(0)
摘要:
1. NuGet包引用 Microsoft.AspNetCore.Session 2. Startup.cs中的相应方法加入些代码: public void ConfigureServices(IServiceCollection services) { //添加session services.A 阅读全文
posted @ 2019-01-18 14:42
青橙时光
阅读(570)
评论(1)
推荐(0)

浙公网安备 33010602011771号