summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-03-08 21:42:14 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-03-09 15:48:45 -0700
commitf40b1565b4ab72788c215d2a34bcd6b891817231 (patch)
tree5b8b080985affe609630366c613d566a07506cc7 /src
parent291e90854ac69ee6ab97938c978c7d25ee0870e1 (diff)
downloadDotNetOpenAuth-f40b1565b4ab72788c215d2a34bcd6b891817231.zip
DotNetOpenAuth-f40b1565b4ab72788c215d2a34bcd6b891817231.tar.gz
DotNetOpenAuth-f40b1565b4ab72788c215d2a34bcd6b891817231.tar.bz2
Sealed the Realm class.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OpenId/Realm.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth/OpenId/Realm.cs b/src/DotNetOpenAuth/OpenId/Realm.cs
index 80f3ce4..90680aa 100644
--- a/src/DotNetOpenAuth/OpenId/Realm.cs
+++ b/src/DotNetOpenAuth/OpenId/Realm.cs
@@ -28,7 +28,7 @@ namespace DotNetOpenAuth.OpenId {
[Serializable]
// [ContractVerification(true)]
[Pure]
- public class Realm {
+ public sealed class Realm {
/// <summary>
/// A regex used to detect a wildcard that is being used in the realm.
/// </summary>
@@ -63,7 +63,7 @@ namespace DotNetOpenAuth.OpenId {
/// <param name="realmUrl">The realm URL to use in the new instance.</param>
[SuppressMessage("Microsoft.Design", "CA1057:StringUriOverloadsCallSystemUriOverloads", Justification = "Not all realms are valid URLs (because of wildcards).")]
public Realm(string realmUrl) {
- ErrorUtilities.VerifyArgumentNotNull(realmUrl, "realmUrl");
+ ErrorUtilities.VerifyNonZeroLength(realmUrl, "realmUrl");
this.DomainWildcard = Regex.IsMatch(realmUrl, WildcardDetectionPattern);
this.uri = new Uri(Regex.Replace(realmUrl, WildcardDetectionPattern, m => m.Groups[1].Value));
if (!this.uri.Scheme.Equals("http", StringComparison.OrdinalIgnoreCase) &&