开发者

Creating Web-service for modifying XPO objects by timer

开发者 https://www.devze.com 2023-02-17 00:17 出处:网络
I have several clients that create new objects. When new object is created I need to start a timer that will change some object properties when time is elapsed (each object can be visible only for def

I have several clients that create new objects. When new object is created I need to start a timer that will change some object properties when time is elapsed (each object can be visible only for defined client groups certain time). I wa开发者_运维知识库nt to use for this purpuses web-service and wrote a method that starts timer.

For example I need to set timer to 5 minutes. Are there any restrictions for executing time? Will a timer keep my web-service alive?


Perhaps, I don't understand your task completely, but your idea about Web Service usage looks strange to me. Web Services are usually used to process requests from remote clients. I.e. a client calls method of a Web Service and Web Service returns a result to this client.

I think, I got your idea :). If you need to just change data in the DB, I think the better solution is to create a windows service which will ping web service when needed.

0

精彩评论

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

关注公众号