/// <summary> /// Конструктор. /// </summary> /// <param name="channel">Канал.</param> public WeakEventCallback(IWeakEventChannel channel) { this.channel = new WeakReference<IWeakEventChannel>(channel); token = channel.AddCallback(this); }
/// <summary> /// Конструктор. /// </summary> /// <param name="channel">Канал.</param> public WeakEventCallback(IWeakEventChannel channel) { this.channel = new WeakReference<IWeakEventChannel>(channel); token = channel.AddCallback(this); }