c#


WCF send info from service to client when event happens in service


I'm trying to build basic prototypes from a project that will take form a little later down the road.
For this prototype I currently have a console application hosting WCF services and another console application consuming the WCF services.
I have read of the three different message patterns for WCF and from what I understand I can either :
1)Call the WCF service and wait for the answer, locking the consumer while its waiting for the answer.
2)Call the WCF service asynchronously, which doesn't lock the consumer while its waiting for the answer. An answer event will eventually happen.
3)Call the WCF service without expecting and answer at all.
What I would like to know is if it is possible to use WCF to send a message to the client when an event is triggered on the service side. For example if a variable changes on the application hosting my services, a message would be sent to a client.
The only way I can imagine this would be to have my client also host WCF services and send a one way message from my initial host as the client.
This seems like a somewhat odd way of doing things for some reason and I would love to know if anybody has another idea on how this could be done.
Thanks a lot!
Note: Just in case anybody gets stuck on that, I am not looking for a way to trigger events when a variable changes. Also, there is no code in the question because it is mostly an architectural question. If you can point me towards the right tools to achieve what I'm looking for I'm sure i'll find plenty of code examples on how to use them!

Related Links

Find which range does the value lie in a dictionary
C# DataGridView- How show horizontal scroll
Enable System.Form.Timer from Backgroundworker
Check if a key in WPF OnKeyUp event is a special character
Why does my application hang while trying to close a SqlConnection object?
Child classes, and variabled inheritance
MVC4 Complex Type Model is null after post
Stored Procedures vs Code in Database Query
XmlSerializer.Serialize Stripping the <xml> tag
Conditional either-or on type constraint
QR library for MonoTouch?
Populate CheckedBoxList1 from previous dialog
Report viewer can't access reports in other database server
Signed vs. unsigned integers for lengths/counts
How can I change the text of a texbox in every second?
Do I need to configure Log4Net in every window or is there a way to do it once in a base class?

Categories

HOME
postgresql
itunesconnect
customization
bigtable
azure-database-mysql
cryengine
redhawksdr
sitemap
genexus
google-search-appliance
aspectj
browsermob
opendaylight
openstack-horizon
dompdf
openscad
wallet
audio-streaming
autologin
udeploy
summernote
descriptor
typedef
angular2-pipe
matlab-gui
aspxgridview
jira-zephyr
sasl
mex
libxml2
angular2-changedetection
proof-general
resx
dynamic-memory-allocation
dynamics-ax-2012-r3
deferred
opencsv
voyager
javax
pyenv
border-layout
hippocms
redhat-brms
framebuffer
idea-plugin
julia-jump
f#-fake
servicebus
android-doze-and-standby
denodo
xamarin-test-cloud
grib
bipartite
cedar-bdd
blackberry-webworks
alfred
class-design
jira-agile
vga
android-xmlpullparser
queuing
web-optimization
ideavim
android-contentresolver
newlib
play-json
self-join
musicbrainz
teamwork
minko
ultraedit
chrome-mobile
mathics
optimistic-locking
quickfixn
drools-guvnor
sqldatasource
ekevent
xcode5.1
grunt-contrib-imagemin
ie-developer-tools
ironworker
azure-pack
playing-cards
azure-scheduler
ftpwebrequest
phone-state-listener
php-gettext
win-prolog
code-organization
capitalization
recess
jquery-click-event
sipdroid
virtual-destructor
text-manipulation
linq-to-mysql
file-icons

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App