oneway的webmethod无法获取HttpContext.Current.ApplicationInstance

Zoezs 2012-11-08 07:34:36
希望用oneway 的方式也能获取到HttpContext.Current.ApplicationInstance,有什么办法吗?
...全文
145 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Zoezs 2012-11-09
  • 打赏
  • 举报
回复
没人回复?顶一下
Zoezs 2012-11-08
  • 打赏
  • 举报
回复
[WebMethod]
[SoapDocumentMethod(OneWay=true)]
public void Method1(INPUT oInput)
{
   var instance=HttpContext.Current.ApplicationInstance;
}

12,166

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧