是否有可能在计时器中连续获取Windows服务中的数据 [英] Is it possible in timer to get continuously data in windows service

查看:49
本文介绍了是否有可能在计时器中连续获取Windows服务中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

使用Windows服务。在此服务中,从客户端连续获取数据并存储在数据库中。



是否可以通过在C#中使用Timer控件来获取连续数据..



请有人告诉我的答案...

Hi
Am using windows service. In this service get data continuously from client and stored in database.

Is it possible by using Timer control in C# for getting continuous data..

Please anyone tell me the answer...

推荐答案

是的,你可以!查找详细说明和简单示例此处 [ ^ ]



[ ^ ]是一种优雅的方式做同样的事情,但以更好的方式!
Yes, you can! Find a detail explanation and simple examples here[^]

This[^] is an elegant way of doing the same thing but in a much better way!


这篇关于是否有可能在计时器中连续获取Windows服务中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆