c# - Asynchronously return from wcf service to multiple clients -


i have wcf service in have long running methods , process kind of data , return client. have tried use contracts similar following

task<string> servicemethod(string message); 

the problem if want return same data multiple clients service how can (how , store information clients requesting data).

also if need call background worker above method how process in runworker_completed , return result above.


additional info

the returning of same data multiple clients in case clients request same data since takes time , process whenever available want return clients have requested it.

if understand question correctly, want service callback clients when finishes long running process generates data. have take care of multiple clients, recommend use duplex wcf. duplex service contract provides calling method on invoking client. following code project link example duplex , has lot more details

http://www.codeproject.com/articles/491844/a-beginners-guide-to-duplex-wcf

note should have own logic maintaining list of callback channels


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -