public override bool OnStart() { _log.NormalLog(string.Format("{0}:Start=>Starting ", "OnStart()")); if (_client != null && _timeRead != null) { _client.Connect(); _timeRead.Elapsed += TimeRead_Elapsed; _timeRead.AutoReset = true; _timeRead.Start(); subscribeSendData(); _log.NormalLog(string.Format("{0}:Starting=>Started ", "OnStart()")); return(true); } else { return(false); } }