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

Get index of selected Enumerable items
How do add multiple knockout function within single viewmodel? And again how can we call this viewmodel to MVC view to run the application?
Force a exe/process to be child of my process in C# [duplicate]
VSIX project : Can't access to a custom command file template
What is the difference between myArray.GetValue(2) and myArray[2] in C#?
MSBuild Errors and Warnings logging
Need to figure out how to pull a name along with the timespan out of a list
pdf files automatically downloaded in website created using C1 CMS
C# 2015 - Gridview selected rows to RDLC report - Per page one row
ASP.NET use Proxy value in asp:GridView
Coded UI: HRESULT E_FAIL has been returned from a call to a COM component
LINQ to SQL DataContext seems to lock when iterating foreach on a Where statement
Export to Excel - How to dynamically set header text using LINQ?
Notifying all properties of the viewmodel has changed with null or string empty
Any performance difference between using variables or constants in Entity Framework query?
AngularJS WebAPI $http.get Object values are Null

Categories

HOME
c#
drupal
classification
youtube-api
macros
primefaces
stanford-nlp
android-ndk
overrides
xss
localhost
perl6
mediarecorder
glympse
comments
gnuradio
hibernate-mapping
sequence
revit-api
olap
jcodemodel
ndepend
elastalert
websharper
drush
chef-recipe
watson-dialog
jinja2
box2d
openstack-horizon
k-means
simd
gpo
summernote
descriptor
fibonacci
devexpress-mvc
ckeditor4.x
grunt-contrib-uglify
oracle10g
deployment-descriptor
sasl
spring-data-gemfire
intermec
key-bindings
language-detection
extern
peerjs
wufoo
taleo
togglebutton
visualizer
aot
petapoco
msiexec
zsh-completion
easy68k
papyrus
virtualenvwrapper
hotkeys
radar-chart
clique
salesforce-service-cloud
jersey-test-framework
fadein
dday
skscene
dpkt
stereotype
autopep8
mri
esri-arc-engine
powerpoint-2010
cocos2d-x-2.x
azure-worker-roles
dotcmis
time-frequency
triplestore
visual-c#-express-2010
sigma-grid-control
opencobol
farpoint-spread
flask-mongoengine
google-mirror-api
fade
raddatepicker
forward-declaration
usersettings
backbone-views
outlook-object-model
magicsuggest
auctex
algol
hypertable
shapado
certificate-revocation
pdf-reader
django-admin-tools
datasheet
facebook-winjs-sdk
commonsware
idtabs
mcpd
execjs
sessiontracking
netduino
arraycollection
database-agnostic
appointment
dojox.gfx
manuals
djangoappengine
httpbrowsercapabilities

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