internal void OnSetupDone() { var handler = SetupDone; if (handler != null) { using (var transaction = new TransactionScope()) { using (new ReplicationScope()) { handler(this, new EventArgs()); } transaction.Complete(); } } }