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

How can I add a text box dynamically under an other by pressing a button in c#? (winforms)
VS2013 Dynamically create chart c#
.UpdateLayout() throwns an exception from RunWorkerCompleted method
Unix to Dos Conversion in C#
How to fill a textbox by using another textbox textchanged event?
NHibernate How do i put data in many to many mapping
Is there a way to use the Windows Form table in a Razor view cshtml?
Round robin pub/sub with StackExchange.Redis
Check if 'Restrict background data' is active on Windows Phone
XMLHttpRequest: Network Error Access is denied
MongoDB EC2 C# Upload Issues - Missing Key?
ASP.Net Web API Validation Attributes on DTO?
Microsoft Solver Foundation could not solve my model in some cases
How to change the column names of a mapping table?
Custom Button doesn't show its content properly
Programmatically get the location set up in regional settings

Categories

HOME
msbuild
leaflet
virtual-machine
arcgis
azure-resource-manager
app-store
meson-build
markdown
promotions
box-api
coding-style
vichuploaderbundle
xmlhttprequest
samba
ibatis
virtuemart
git-branch
rndis
ng-tags-input
handle
policy
ithit-webdav-server
my.cnf
rollupjs
libxml2
scripting-language
request-uri
snapkit
flickr
webclient
apache-falcon
pymunk
azure-storage-files
libconfig
var
socketcluster
wufoo
scrapinghub
gradlew
api-key
togglebutton
hdpi
skype-bots
cancan
dna-sequence
bioperl
node-java
sharpssh
kendo-scheduler
multi-targeting
dmalloc
totalview
critical-section
reloaddata
ios-keyboard-extension
addressbook
easy-thumbnails
glade
dbi
visual-web-developer
hfp
video-embedding
wiql
imageicon
jcomponent
personality-insights
textblob
android-filterable
data-representation
opennebula
jsonmodel
report-builder2.0
sync
worklight-appcenter
rssi
new-operator
slimscroll
git-subtree
carrier
nop
adabas
xml-validation
static-class
forward-declaration
dynamic-expresso
coinbase-php
ftpwebrequest
phone-state-listener
database-restore
qt5.1
cron4j
xcode4.6.3
php-gettext
motorola-droid
sqlbuddy
advanceddatagrid
maven-eclipse-plugin
mcpd
lgpl
xcdatamodel
authkit

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