summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Messaging/Bindings/StandardReplayProtectionBindingElement.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-02-16 20:15:06 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-02-16 20:15:06 -0800
commitfcee7171b683db63aafac3c7351b22a849d06db4 (patch)
tree69e98c2be1e4fb8d8496010ee6e45e5d19ac0a36 /src/DotNetOpenAuth.Core/Messaging/Bindings/StandardReplayProtectionBindingElement.cs
parent04426dfbba325fd4ed308a6c9c6c103fed14ff13 (diff)
downloadDotNetOpenAuth-fcee7171b683db63aafac3c7351b22a849d06db4.zip
DotNetOpenAuth-fcee7171b683db63aafac3c7351b22a849d06db4.tar.gz
DotNetOpenAuth-fcee7171b683db63aafac3c7351b22a849d06db4.tar.bz2
Lots of stylecop fixes.
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/Bindings/StandardReplayProtectionBindingElement.cs')
-rw-r--r--src/DotNetOpenAuth.Core/Messaging/Bindings/StandardReplayProtectionBindingElement.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/Bindings/StandardReplayProtectionBindingElement.cs b/src/DotNetOpenAuth.Core/Messaging/Bindings/StandardReplayProtectionBindingElement.cs
index 6c062d6..65c7882 100644
--- a/src/DotNetOpenAuth.Core/Messaging/Bindings/StandardReplayProtectionBindingElement.cs
+++ b/src/DotNetOpenAuth.Core/Messaging/Bindings/StandardReplayProtectionBindingElement.cs
@@ -15,7 +15,14 @@ namespace DotNetOpenAuth.Messaging.Bindings {
/// A binding element that checks/verifies a nonce message part.
/// </summary>
internal class StandardReplayProtectionBindingElement : IChannelBindingElement {
+ /// <summary>
+ /// A reusable, precompleted task that can be returned many times to reduce GC pressure.
+ /// </summary>
private static readonly Task<MessageProtections?> NullTask = Task.FromResult<MessageProtections?>(null);
+
+ /// <summary>
+ /// A reusable, precompleted task that can be returned many times to reduce GC pressure.
+ /// </summary>
private static readonly Task<MessageProtections?> CompletedReplayProtectionTask = Task.FromResult<MessageProtections?>(MessageProtections.ReplayProtection);
/// <summary>