protected override void OnDispose(bool disposing) { if (disposing) { this._messagingNotifier.OnDeviceMessagesPosted -= new DeviceItemsPostedHandler(this.OnDeviceMessagesPostedAsync); this._messagingNotifier.OnDeviceCartItemsPosted -= new DeviceItemsPostedHandler(this.OnDeviceCartItemsPostedAsync); this._messagingNotifier.Dispose(); this._messagingNotifier = null; } base.OnDispose(disposing); }
private ShellMessagingNotifier() { this._messagingNotifier = new MessagingNotifier(); this._messagingNotifier.OnDeviceCartItemsPosted += new DeviceItemsPostedHandler(this.OnDeviceCartItemsPostedAsync); this._messagingNotifier.OnDeviceMessagesPosted += new DeviceItemsPostedHandler(this.OnDeviceMessagesPostedAsync); }