}     // End Task RunDbSync

        void UniversalService.ICommonService.OnStart()
        {
            StaticTestLogger.AppendLine("XXXService: StartAsync");
            System.Console.WriteLine("XXXService: StartAsync");
            this.Logger.LogInformation("CommonSampleService OnStart");
            this.m_run = true;
            System.Threading.Tasks.Task t = RunDbSync();
        }
        void UniversalService.ICommonService.OnStop()
        {
            StaticTestLogger.AppendLine("XXXService: StopAsync");
            System.Console.WriteLine("XXXService: StopAsync");
            this.Logger.LogInformation("CommonSampleService OnStop");

            this.m_run = false;
        }
 public async System.Threading.Tasks.Task RunDbSync()
 {
     while (this.m_run)
     {
         StaticTestLogger.AppendLine("XXXService: Tick");
         System.Console.WriteLine("XXXService: Tick");
         await System.Threading.Tasks.Task.Delay(1000);
     } // Whend
 }     // End Task RunDbSync