/// <summary> /// Führt anwendungsspezifische Aufgaben durch, die mit der Freigabe, der Zurückgabe oder dem Zurücksetzen von nicht verwalteten Ressourcen zusammenhängen. /// </summary> /// <filterpriority>2</filterpriority> public virtual void Dispose() { if (!disposed) { disposed = true; stopEvent.Set(); stoppedEvent.WaitOne(); checkConnectionTimer.Dispose(); stopEvent.Dispose(); stoppedEvent.Dispose(); client.UnSubscribeEvent(remoteObjectName, ParallellResources.ParallelMethod_PackageProcessed, packageFinishedHandler); client.OperationalChanged -= HandleClientOperationalChanged; } }
/// <summary> /// Enables a child object to remove a specific event-subscription /// </summary> /// <param name="eventName">the name of the target-event</param> /// <param name="target">the deletage to remove from the subscription</param> protected override void RemoveEventSubscription(string eventName, Delegate target) { consumer.UnSubscribeEvent(objectName, eventName, target); }