Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Removed unimplemented Exception.GetObjectData override methods.
Browse files Browse the repository at this point in the history
They weren't implemented anyway, and seem to be causing trouble with certain CLR 4 hosters (like Rackspace).

Fixes #121
  • Loading branch information
AArnott committed Apr 21, 2012
1 parent 2b5cf30 commit 2c2b114
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -43,6 +43,7 @@ public class CryptoKeyCollisionException : ArgumentException {
throw new NotImplementedException();
}

#if false
/// <summary>
/// When overridden in a derived class, sets the <see cref="T:System.Runtime.Serialization.SerializationInfo"/> with information about the exception.
/// </summary>
Expand All @@ -64,5 +65,6 @@ public class CryptoKeyCollisionException : ArgumentException {
base.GetObjectData(info, context);
throw new NotImplementedException();
}
#endif
}
}
2 changes: 2 additions & 0 deletions src/DotNetOpenAuth.Core/Messaging/ProtocolException.cs
Expand Up @@ -68,6 +68,7 @@ protected internal ProtocolException(string message, IProtocolMessage faultedMes
/// </summary>
internal IProtocolMessage FaultedMessage { get; private set; }

#if false
/// <summary>
/// When overridden in a derived class, sets the <see cref="T:System.Runtime.Serialization.SerializationInfo"/> with information about the exception.
/// </summary>
Expand All @@ -89,5 +90,6 @@ protected internal ProtocolException(string message, IProtocolMessage faultedMes
base.GetObjectData(info, context);
throw new NotImplementedException();
}
#endif
}
}

0 comments on commit 2c2b114

Please sign in to comment.