diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-02-16 20:49:23 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-02-16 20:49:23 -0800 |
commit | 549017cdf590ea4ce4d8ad55c013c33a506133a3 (patch) | |
tree | 4783fa4d796c6deb1f7f39d0937778d88858daf3 /src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs | |
parent | fcee7171b683db63aafac3c7351b22a849d06db4 (diff) | |
download | DotNetOpenAuth-549017cdf590ea4ce4d8ad55c013c33a506133a3.zip DotNetOpenAuth-549017cdf590ea4ce4d8ad55c013c33a506133a3.tar.gz DotNetOpenAuth-549017cdf590ea4ce4d8ad55c013c33a506133a3.tar.bz2 |
More warning fixes.
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs b/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs index b84bd48..a4aff73 100644 --- a/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs +++ b/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs @@ -88,6 +88,11 @@ namespace DotNetOpenAuth.Messaging { private const int SymmetricSecretHandleLength = 4; /// <summary> + /// A pre-completed task. + /// </summary> + private static readonly Task CompletedTaskField = Task.FromResult<object>(null); + + /// <summary> /// The default lifetime of a private secret. /// </summary> private static readonly TimeSpan SymmetricSecretKeyLifespan = Configuration.DotNetOpenAuthSection.Messaging.PrivateSecretMaximumAge; @@ -151,6 +156,13 @@ namespace DotNetOpenAuth.Messaging { } /// <summary> + /// Gets a pre-completed task. + /// </summary> + internal static Task CompletedTask { + get { return CompletedTaskField; } + } + + /// <summary> /// Gets a random number generator for use on the current thread only. /// </summary> internal static Random NonCryptoRandomDataGenerator { |