Ejemplo n.º 1
0
 /// <summary>
 /// Delete a previously registerd notification
 /// </summary>
 /// <param name="notificationHandle">The handle returned by AddNotification</param>
 /// <returns></returns>
 public void DeleteNotification(uint notificationHandle)
 {
     var adsCommand = new AdsDeleteDeviceNotificationCommand(notificationHandle);
     var result     = adsCommand.Run(this.ams);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Delete a previously registerd notification
        /// </summary>
        /// <param name="notificationHandle">The handle returned by AddNotification(Async)</param>
        /// <returns></returns>
        public Task DeleteNotificationAsync(uint notificationHandle)
        {
            var adsCommand = new AdsDeleteDeviceNotificationCommand(notificationHandle);

            return(adsCommand.RunAsync(this.ams));
        }