开发者

WCF Service - automated or timed action

开发者 https://www.devze.com 2023-01-06 10:50 出处:网络
We have a WCF service, hosted on IIS7.5, that has to fetch some data from an external web service. Is there some way to schedule this action to be started, in our WCF service, on a re开发者_JS百科gul

We have a WCF service, hosted on IIS7.5, that has to fetch some data from an external web service.

Is there some way to schedule this action to be started, in our WCF service, on a re开发者_JS百科gular (timed) basis?

Thanks


Yes, create a Windows service which wakes up every x minutes or hours and makes the call.

The WCF service is not "always on" - it is typically only created when a request comes in and needs to be handled. But you would typically host your WCF service in either IIS, or self-host - which usually already means a Windows Service anyway.


I would recommend VisualCron which can schedule WCF and web service calls (amont other things).

With that tool you can supply dynamic parameters, retrieve output and parse it. If you want you can forward the data to a file, email etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号