summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-01-12 11:57:40 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-01-12 12:03:26 -0800
commite264445b6966e927ab1109985966e94d7f2127c8 (patch)
tree6f4bf17e74c0b66c79757e8c7cbe59b0fdcbd58d /src
parentf9c615bc47d49457546d046b2cb326f93fd8f5e0 (diff)
downloadDotNetOpenAuth-e264445b6966e927ab1109985966e94d7f2127c8.zip
DotNetOpenAuth-e264445b6966e927ab1109985966e94d7f2127c8.tar.gz
DotNetOpenAuth-e264445b6966e927ab1109985966e94d7f2127c8.tar.bz2
Skips the UriIdentifier scheme workaround on Mono.
Mono doesn't support it. Thanks to Justin Nel <dogbertuk2000@gmail.com> for helping identify this mono limitation.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth.OpenId/OpenId/UriIdentifier.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.OpenId/OpenId/UriIdentifier.cs b/src/DotNetOpenAuth.OpenId/OpenId/UriIdentifier.cs
index 631eab6..41417de 100644
--- a/src/DotNetOpenAuth.OpenId/OpenId/UriIdentifier.cs
+++ b/src/DotNetOpenAuth.OpenId/OpenId/UriIdentifier.cs
@@ -69,6 +69,11 @@ namespace DotNetOpenAuth.OpenId {
/// </remarks>
[SuppressMessage("Microsoft.Performance", "CA1810:InitializeReferenceTypeStaticFieldsInline", Justification = "Some things just can't be done in a field initializer.")]
static UriIdentifier() {
+ if (Type.GetType("Mono.Runtime") != null) {
+ // Uri scheme registration doesn't work on mono.
+ return;
+ }
+
// Our first attempt to handle trailing periods in path segments is to leverage
// full trust if it's available to rewrite the rules.
// In fact this is the ONLY way in .NET 3.5 (and arguably in .NET 4.0) to send