服务主机是否可以在回调操作中具有上下文? [英] Does a Service host can Have a context fro callback operation ???

查看:90
本文介绍了服务主机是否可以在回调操作中具有上下文?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

我有一个WCF服务,该服务在Windows服务下托管.
我们将其称为ServiceA.

此ServiceA假定会收到来自的回叫事件
ServiceA可以实现回调接口吗?
如果是,如何初始化回调上下文?

我已经使用客户端表单应用程序完成了此操作,但想知道它是否可以也可以在服务基础上进行.

致谢:

问候
serge


您的经验是从其他版本之一构建.

Dear all,

I have a WCF service which is hosted under a Windows service.
Let's call it ServiceA.

This ServiceA is suppose to receive a call back event from an other service.
Does ServiceA can implement a call back interface ?
if yes, how to initialize the callback context ?

I have done this with a client form application but was wondering if it can be also done on service base.

Thnaks for wour reply

regards
serge


Your experience is build from the one of others

推荐答案

WCF支持双工通信,允许您正在查找的回调,请参见此处获取有关入门的一些信息:

http://msdn.microsoft.com/en-us/library/ms731184.aspx
WCF support Duplex communication which allows the callbacks you are looking for, please see here for some information on getting started:

http://msdn.microsoft.com/en-us/library/ms731184.aspx


这篇关于服务主机是否可以在回调操作中具有上下文?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆