diff options
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/IDirectedProtocolMessage.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Messaging/IDirectedProtocolMessage.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/IDirectedProtocolMessage.cs b/src/DotNetOpenAuth.Core/Messaging/IDirectedProtocolMessage.cs new file mode 100644 index 0000000..4342d45 --- /dev/null +++ b/src/DotNetOpenAuth.Core/Messaging/IDirectedProtocolMessage.cs @@ -0,0 +1,30 @@ +//----------------------------------------------------------------------- +// <copyright file="IDirectedProtocolMessage.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace DotNetOpenAuth.Messaging { + using System; + + /// <summary> + /// Implemented by messages that have explicit recipients + /// (direct requests and all indirect messages). + /// </summary> + public interface IDirectedProtocolMessage : IProtocolMessage { + /// <summary> + /// Gets the preferred method of transport for the message. + /// </summary> + /// <remarks> + /// For indirect messages this will likely be GET+POST, which both can be simulated in the user agent: + /// the GET with a simple 301 Redirect, and the POST with an HTML form in the response with javascript + /// to automate submission. + /// </remarks> + HttpDeliveryMethods HttpMethods { get; } + + /// <summary> + /// Gets the URL of the intended receiver of this message. + /// </summary> + Uri Recipient { get; } + } +} |