diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-12-26 18:07:32 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-12-26 18:07:32 -0800 |
commit | 002ce0e39af3b684ce6060dce60805e3333420fa (patch) | |
tree | 2c9aace23e08d17ed03a3732a5fa4a549463f811 /src/DotNetOpenAuth.OAuth.ServiceProvider/OAuth/ServiceProvider.cs | |
parent | 4bf6dfa05ab5ba2d7ebff157dc4a1a85dae42125 (diff) | |
download | DotNetOpenAuth-002ce0e39af3b684ce6060dce60805e3333420fa.zip DotNetOpenAuth-002ce0e39af3b684ce6060dce60805e3333420fa.tar.gz DotNetOpenAuth-002ce0e39af3b684ce6060dce60805e3333420fa.tar.bz2 |
Replaces DNOA's internal Requires class with Validation NuGet package.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth.ServiceProvider/OAuth/ServiceProvider.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth.ServiceProvider/OAuth/ServiceProvider.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.OAuth.ServiceProvider/OAuth/ServiceProvider.cs b/src/DotNetOpenAuth.OAuth.ServiceProvider/OAuth/ServiceProvider.cs index ecfd191..b7c31a7 100644 --- a/src/DotNetOpenAuth.OAuth.ServiceProvider/OAuth/ServiceProvider.cs +++ b/src/DotNetOpenAuth.OAuth.ServiceProvider/OAuth/ServiceProvider.cs @@ -19,6 +19,7 @@ namespace DotNetOpenAuth.OAuth { using DotNetOpenAuth.Messaging.Bindings; using DotNetOpenAuth.OAuth.ChannelElements; using DotNetOpenAuth.OAuth.Messages; + using Validation; /// <summary> /// A web application that allows access via OAuth. @@ -182,7 +183,7 @@ namespace DotNetOpenAuth.OAuth { /// length of the final string.</param> /// <returns>The verification code.</returns> public static string CreateVerificationCode(VerificationCodeFormat format, int length) { - Requires.InRange(length >= 0, "length"); + Requires.Range(length >= 0, "length"); switch (format) { case VerificationCodeFormat.IncludedInCallback: |