Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of this type.
        /// </summary>
        internal MessageSendResult(PushNotificationMessage associatedMessage, Uri channelUri, WebResponse response)
        {
            Timestamp         = DateTimeOffset.Now;
            AssociatedMessage = associatedMessage;
            ChannelUri        = channelUri;

            InitializeStatusCodes(response as HttpWebResponse);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of this type.
 /// </summary>
 internal MessageSendResult(PushNotificationMessage associatedMessage, Uri channelUri, WebException exception)
     : this(associatedMessage, channelUri, response : exception.Response)
 {
     Exception = exception;
 }