/// <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); }
/// <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; }