简体   繁体   中英

Firing event in WCF (4.5) host

I am trying to get this to work in the latest version of WCF.

The problem is that BatServ does not show up for me to use from the service reference that was added. Only IBatServ does. is this because of the latest version of WCF or something else?

You're trying to fire an event at the host from the client side - and you can't do it directly (the link you pointed out is an event fired at the host from the server side ). The host is potentially on a different computer than the client, so there's no direct way for the latter to access the former. What you can do is to have an operation on the server which the client can call, and that operation can fire the event at the host.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM