Beispiel #1
0
 protected override void Dispose(bool disposing)
 {
     LogicContext.Dispose();
     base.Dispose(disposing);
 }
        //public async Task Tick()
        //{
        //    Elapsed += ServiceRunner.TickInterval;
        //    try
        //    {
        //        var resetElapsed = await Run();
        //        if (resetElapsed)
        //            Elapsed = 0;
        //    }
        //    catch (Exception ex)
        //    {
        //        Elapsed = 0;
        //        throw new ServiceException(this.GetType().Name, "An error occurred while running service", ex);
        //    }
        //}

        public void Dispose()
        {
            _context.Dispose();
        }