public MySensorsMessagesRepositoryEf(MySensorsMessagesDbContext mySensorsDbContext) { updateDbTimer.Elapsed += UpdateDbTimerEvent; this.db = mySensorsDbContext; CreateDb(); if (writeInterval > 0) { updateDbTimer.Interval = writeInterval; updateDbTimer.Start(); } }
public MySensorsMessagesRepositoryEf(MySensorsMessagesDbContext mySensorsDbContext) { updateDbTimer.Elapsed += UpdateDbTimerEvent; this.db = mySensorsDbContext; CreateDb(); if (writeInterval > 0) { updateDbTimer.Interval = writeInterval; updateDbTimer.Start(); } }