public DataBossLogMigrationScope(IDataBossLog log, IDataBossMigrationScope inner) { this.log = log; this.inner = inner; this.stopwatch = new Stopwatch(); inner.OnError += (_, e) => log.Error(e.GetException()); }