摘要: 在SelfHost项目中,获取客户端的IP地址比OwinSelfHost项目要复杂一些,可以通过以下方法获得: base.Request.Properties["System.ServiceModel.Channels.RemoteEndpointMessageProperty"].Address 阅读全文
posted @ 2024-07-04 22:35 【一路向东】 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 在OwinSelfHost项目中,获取客户端的IP地址可以通过以下方法获得: base.Request.GetOwinContext().Request.RemoteIpAddress 创建一个OwinSelfHost项目的大概过程: 创建名称为OwinSelfHostSample的Windows窗 阅读全文
posted @ 2024-07-04 22:21 【一路向东】 阅读(8) 评论(0) 推荐(0) 编辑