/// <summary>
 /// Register to a specific Azure Push Notification
 /// </summary>
 /// <param name="template">Notification template to register for</param>
 /// <param name="cancellationToken">Token to cancel registration</param>
 public virtual Task <bool> RegisterAsync(IAptkAmaNotificationTemplate template, CancellationToken cancellationToken)
 {
     return(RegisterAsync(new List <IAptkAmaNotificationTemplate> {
         template
     }, cancellationToken));
 }
        /// <summary>
        /// Register to a specific Azure Push Notification
        /// </summary>
        /// <param name="template">Notification template to register for</param>
        public virtual Task <bool> RegisterAsync(IAptkAmaNotificationTemplate template)
        {
            var cts = new CancellationTokenSource();

            return(RegisterAsync(template, cts.Token));
        }