diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-09-11 22:32:59 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-11 22:33:39 -0700 |
commit | 8fd37aa11f6da68ed6366a3f98a89feac7501f1e (patch) | |
tree | 108dd73bb3ad7509c1cd73fef75aa6a7c9814bbb /src/DotNetOAuth/OAuthChannel.cs | |
parent | f6d28fb14c91c97f6cc8b85c442987082997866a (diff) | |
download | DotNetOpenAuth-8fd37aa11f6da68ed6366a3f98a89feac7501f1e.zip DotNetOpenAuth-8fd37aa11f6da68ed6366a3f98a89feac7501f1e.tar.gz DotNetOpenAuth-8fd37aa11f6da68ed6366a3f98a89feac7501f1e.tar.bz2 |
Refactored Channel's virtual and abstract methods to NOT be "internal" (or public).
This will be useful when we add message signing and verification to the Channel base class.
It's also consistent with design guidelines to never have public (or internal in this case) methods be virtual or abstract so the base class has control over its operations.
Diffstat (limited to 'src/DotNetOAuth/OAuthChannel.cs')
-rw-r--r-- | src/DotNetOAuth/OAuthChannel.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DotNetOAuth/OAuthChannel.cs b/src/DotNetOAuth/OAuthChannel.cs index ff789b2..5ca973e 100644 --- a/src/DotNetOAuth/OAuthChannel.cs +++ b/src/DotNetOAuth/OAuthChannel.cs @@ -65,7 +65,7 @@ namespace DotNetOAuth { /// </summary>
/// <param name="request">The HTTP request to search.</param>
/// <returns>A dictionary of data in the request. Should never be null, but may be empty.</returns>
- protected internal override IProtocolMessage ReadFromRequest(HttpRequestInfo request) {
+ protected override IProtocolMessage ReadFromRequestInternal(HttpRequestInfo request) {
if (request == null) {
throw new ArgumentNullException("request");
}
@@ -97,7 +97,7 @@ namespace DotNetOAuth { }
// We didn't find an OAuth authorization header. Revert to other payload methods.
- return base.ReadFromRequest(request);
+ return base.ReadFromRequestInternal(request);
}
/// <summary>
@@ -105,7 +105,7 @@ namespace DotNetOAuth { /// </summary>
/// <param name="responseStream">The response that is anticipated to contain an OAuth message.</param>
/// <returns>The deserialized message, if one is found. Null otherwise.</returns>
- protected internal override IProtocolMessage ReadFromResponse(Stream responseStream) {
+ protected override IProtocolMessage ReadFromResponseInternal(Stream responseStream) {
if (responseStream == null) {
throw new ArgumentNullException("responseStream");
}
@@ -122,7 +122,7 @@ namespace DotNetOAuth { /// </summary>
/// <param name="request">The message to send.</param>
/// <returns>The remote party's response.</returns>
- protected internal override IProtocolMessage Request(IDirectedProtocolMessage request) {
+ protected override IProtocolMessage RequestInternal(IDirectedProtocolMessage request) {
if (request == null) {
throw new ArgumentNullException("request");
}
|