Skip to content

Commit f407364

Browse files
committed
Fix still throwing old typo'd exception for DeviceSubscriptionExpired
1 parent 28a20cc commit f407364

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

PushSharp.Amazon/AdmConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public async Task Send (AdmNotification notification)
9595
case HttpStatusCode.BadGateway: //400
9696
case HttpStatusCode.BadRequest: //
9797
if ("InvalidRegistrationId".Equals (reason, StringComparison.InvariantCultureIgnoreCase)) {
98-
throw new DeviceSubscriptonExpiredException (notification) {
98+
throw new DeviceSubscriptionExpiredException (notification) {
9999
OldSubscriptionId = regId,
100100
ExpiredAt = DateTime.UtcNow
101101
};

PushSharp.Blackberry/BlackberryConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public async Task Send (BlackberryNotification notification)
7272
status.NotificationStatus = notStatus;
7373

7474
if (status.NotificationStatus == BlackberryNotificationStatus.NoAppReceivePush)
75-
throw new DeviceSubscriptonExpiredException (notification);
75+
throw new DeviceSubscriptionExpiredException (notification);
7676

7777
if (status.HttpStatus == HttpStatusCode.OK
7878
&& status.NotificationStatus == BlackberryNotificationStatus.RequestAcceptedForProcessing)

PushSharp.Google/GcmServiceConnection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async Task processResponseOk (HttpResponseMessage httpResponse, GcmNotification
127127
}
128128

129129
multicastResult.Failed.Add (singleResultNotification,
130-
new DeviceSubscriptonExpiredException (singleResultNotification) {
130+
new DeviceSubscriptionExpiredException (singleResultNotification) {
131131
OldSubscriptionId = oldRegistrationId,
132132
NewSubscriptionId = newRegistrationId
133133
});
@@ -146,7 +146,7 @@ async Task processResponseOk (HttpResponseMessage httpResponse, GcmNotification
146146
}
147147

148148
multicastResult.Failed.Add (singleResultNotification,
149-
new DeviceSubscriptonExpiredException (singleResultNotification) {
149+
new DeviceSubscriptionExpiredException (singleResultNotification) {
150150
OldSubscriptionId = oldRegistrationId });
151151
} else {
152152
multicastResult.Failed.Add (singleResultNotification, new GcmNotificationException (singleResultNotification, "Unknown Failure: " + r.ResponseStatus));

PushSharp.Windows/WnsConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public async Task Send (WnsNotification notification)
139139

140140
//404 or 410
141141
if (status.HttpStatus == HttpStatusCode.NotFound || status.HttpStatus == HttpStatusCode.Gone) {
142-
throw new DeviceSubscriptonExpiredException (notification) {
142+
throw new DeviceSubscriptionExpiredException (notification) {
143143
OldSubscriptionId = notification.ChannelUri,
144144
ExpiredAt = DateTime.UtcNow
145145
};

0 commit comments

Comments
 (0)