public void Execute([NotNull] BackgroundProcessContext context) { Console.WriteLine("Begin to start data sync service background job. " + DateTime.Now.ToString()); dataSyncServiceManager.Execution(); // context.Wait(TimeSpan.FromSeconds(5)); Console.WriteLine("Finish data sync service background job. " + DateTime.Now.ToString()); }
public void TryToGetAllService() { dataSyncServiceManager.Execution(); }