public NodesRepositoryEf(NodesDbContext nodesDbContext) { updateDbTimer.Elapsed += UpdateDbTimerEvent; this.db = nodesDbContext; CreateDb(); if (writeInterval > 0) { updateDbTimer.Interval = writeInterval; updateDbTimer.Start(); } }