Example #1
0
        /// <summary>
        /// Create the task that sends the notification
        /// </summary>
        /// <returns>A task that will handle async the notification send</returns>
        public async Task <NotificationResult> SendAsync()
        {
            try
            {
                await this.Notificator.SendAsync(Message);

                return(NotificationResult.Success(this));
            }
            catch (Exception ex)
            {
                return(NotificationResult.Fail(this, ex));
            }
        }