public override void Initialize() { base.Initialize(); this.watcher = new OracleTableWatcher(); this.watcher.OnChanged += this.Watcher_OnChanged; this.watcher.AddWatchSource(this.Table); this.LogDebugFormat("Listening for data in '{1}'...", this.Table); }
public override void DeInitialize() { if (this.watcher != null) { this.watcher.OnChanged -= this.Watcher_OnChanged; this.watcher.Dispose(); this.watcher = null; } base.DeInitialize(); }