job lot

job lot

  • NA
  • 5
  • 0

Making one-way and asynchronous call to service operation

Jul 15 2009 3:40 AM

I have a method on my service class which performs long running calculation. I have a requirement where this method can be called from a WebUI and an automated console ui app.

The web ui client only need to initiate the process and are not interested in the result (success/failure) of the processing (fire and forget analogy). But the console ui app needs to know the result of the processing before terminating.

The service class will be hosted as WCF service in Windows Services host. How can I make one-way call (from web) and asynchronous call (from console ui) on the same service method?

Could someone please shed some light on how this can be achieved and some design considerationsThanks