Skip to content

Commit 60e6882

Browse files
author
michael.hallett
committed
added windows phone exclusion on cancellation token async stuff
1 parent 0fa2f1d commit 60e6882

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RestSharp/RestClient.Async.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public virtual Task<IRestResponse<T>> ExecuteTaskAsync<T>(IRestRequest request,
290290
taskCompletionSource.TrySetCanceled();
291291
});
292292

293-
#if !SILVERLIGHT
293+
#if !WINDOWS_PHONE
294294
taskCompletionSource.Task.ContinueWith(t => t.Dispose(), token);
295295
#endif
296296
}
@@ -396,7 +396,7 @@ public virtual Task<IRestResponse> ExecuteTaskAsync(IRestRequest request, Cancel
396396
taskCompletionSource.TrySetCanceled();
397397
});
398398

399-
#if !SILVERLIGHT
399+
#if !WINDOWS_PHONE
400400
taskCompletionSource.Task.ContinueWith(t => t.Dispose(), token);
401401
#endif
402402
}

0 commit comments

Comments
 (0)