c# - WCF Service - Don't wait for external web service call -
apologies upfront if elementary question. how initiate external web service call in existing wcf web service , not wait third party service return response before continuing , exiting function allow web service return value immediately?
you need make call external service asynchronous. there different options depending on version of framework you're on. if you're on 4.5 take @ async: http://msdn.microsoft.com/en-us/library/vstudio/hh156513.aspx
we're doing similar - invoking restful service asynchronously wcf using restsharp. take @ example here: fire , forget within wcf service
when "return value immediately" saying want call wcf service non-blocking? return client right away? if need make wcf service contract oneway. see: http://msdn.microsoft.com/en-us/library/ms733035.aspx however, can't return values oneway services.
Comments
Post a Comment