Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 private ShellMessagingNotifier()
 {
     this._messagingNotifier = new MessagingNotifier();
     this._messagingNotifier.OnDeviceCartItemsPosted += new DeviceItemsPostedHandler(this.OnDeviceCartItemsPostedAsync);
     this._messagingNotifier.OnDeviceMessagesPosted  += new DeviceItemsPostedHandler(this.OnDeviceMessagesPostedAsync);
 }