c# - Is WCF announcement the right choice? -
c# - Is WCF announcement the right choice? -
i have created local wcf service tcp binding. handle case when service goes down. know how check when service goes downwards in client side not know how check when service come online.
in simple word, want client side automatically create new proper connection when service restarts. after checking internet, found wcf proclamation feature, did not find clear illustration on how utilize proclamation feature.
please note client connection object (service) created automatically visually studio entering service reference , not myself. service has static ip address , clients on local network.
my question is wcf proclamation right selection or there other solution?
there 2 ways general ways can go doing need do:
since have static ip address service, can utilize old method of having "check if online" timer event on client side starts when connection service lost , keeps on poking destination see when service comes 1 time again calling specific method on wcf service replies true/all-ok
issues approach many:
so using wcf discovery method improve because clients wait service come online again, announce ready , not congest local network unneeded traffic. on next sites there examples , explanations how utilize wcf discovery feature:
general wcf discovery page, specific client side implementation here an announcement example visual studio pages another site examples , total application config file can athopefully page available in language.
c# web-services wcf
Comments
Post a Comment