diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-18 22:53:06 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-18 22:53:06 -0800 |
commit | 8aa6439564b60e762e66e0055600a0f1a2348803 (patch) | |
tree | 88b335c7265b90bd501d3f1313f2711df69dd2e8 /src | |
parent | 53e675d9603dc05f2b51c645ec51ae9ee29fb3c1 (diff) | |
parent | e9a2f0cad78c82a2db939fb8925f113d9215b239 (diff) | |
download | DotNetOpenAuth-8aa6439564b60e762e66e0055600a0f1a2348803.zip DotNetOpenAuth-8aa6439564b60e762e66e0055600a0f1a2348803.tar.gz DotNetOpenAuth-8aa6439564b60e762e66e0055600a0f1a2348803.tar.bz2 |
Merge branch 'v3.1' into v3.2
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth.Test/OAuth/OAuthCoordinator.cs | 3 | ||||
-rw-r--r-- | src/DotNetOpenAuth/Messaging/Bindings/NonceMemoryStore.cs | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuth/OAuthCoordinator.cs b/src/DotNetOpenAuth.Test/OAuth/OAuthCoordinator.cs index e04edeb..ce548a9 100644 --- a/src/DotNetOpenAuth.Test/OAuth/OAuthCoordinator.cs +++ b/src/DotNetOpenAuth.Test/OAuth/OAuthCoordinator.cs @@ -7,6 +7,7 @@ namespace DotNetOpenAuth.Test { using System; using DotNetOpenAuth.Messaging; + using DotNetOpenAuth.Messaging.Bindings; using DotNetOpenAuth.OAuth; using DotNetOpenAuth.OAuth.ChannelElements; using DotNetOpenAuth.Test.Mocks; @@ -57,7 +58,7 @@ namespace DotNetOpenAuth.Test { WebConsumer consumer = new WebConsumer(this.serviceDescription, consumerTokenManager) { OAuthChannel = consumerChannel, }; - ServiceProvider serviceProvider = new ServiceProvider(this.serviceDescription, serviceTokenManager) { + ServiceProvider serviceProvider = new ServiceProvider(this.serviceDescription, serviceTokenManager, new NonceMemoryStore()) { OAuthChannel = serviceProviderChannel, }; diff --git a/src/DotNetOpenAuth/Messaging/Bindings/NonceMemoryStore.cs b/src/DotNetOpenAuth/Messaging/Bindings/NonceMemoryStore.cs index 3d624a6..fcea3d9 100644 --- a/src/DotNetOpenAuth/Messaging/Bindings/NonceMemoryStore.cs +++ b/src/DotNetOpenAuth/Messaging/Bindings/NonceMemoryStore.cs @@ -47,6 +47,13 @@ namespace DotNetOpenAuth.Messaging.Bindings { /// <summary> /// Initializes a new instance of the <see cref="NonceMemoryStore"/> class. /// </summary> + internal NonceMemoryStore() + : this(StandardExpirationBindingElement.DefaultMaximumMessageAge) { + } + + /// <summary> + /// Initializes a new instance of the <see cref="NonceMemoryStore"/> class. + /// </summary> /// <param name="maximumMessageAge">The maximum age a message can be before it is discarded.</param> internal NonceMemoryStore(TimeSpan maximumMessageAge) { this.maximumMessageAge = maximumMessageAge; |