Lots of StyleCop changes.
[dotnetoauth.git] / src / DotNetOAuth / IndirectMessage.cs
blob638b4fd1e2912bd21627d740bebe2a320baa46a5
1 //-----------------------------------------------------------------------
2 // <copyright file="IndirectMessage.cs" company="Andrew Arnott">
3 // Copyright (c) Andrew Arnott. All rights reserved.
4 // </copyright>
5 //-----------------------------------------------------------------------
7 namespace DotNetOAuth {
8 using System.Net;
10 /// <summary>
11 /// A protocol message that passes between Consumer and Service Provider
12 /// via the user agent using a redirect or form POST submission.
13 /// </summary>
14 /// <remarks>
15 /// An <see cref="IndirectMessage"/> instance describes the HTTP response that must
16 /// be sent to the user agent to initiate the message transfer.
17 /// </remarks>
18 public class IndirectMessage {
19 /// <summary>
20 /// Gets the headers that must be included in the response to the user agent.
21 /// </summary>
22 /// <remarks>
23 /// The headers in this collection are not meant to be a comprehensive list
24 /// of exactly what should be sent, but are meant to augment whatever headers
25 /// are generally included in a typical response.
26 /// </remarks>
27 public WebHeaderCollection Headers { get; internal set; }
29 /// <summary>
30 /// Gets the body of the HTTP response.
31 /// </summary>
32 public byte[] Body { get; internal set; }
34 /// <summary>
35 /// Gets the HTTP status code to use in the HTTP response.
36 /// </summary>
37 public HttpStatusCode Status { get; internal set; }
39 /// <summary>
40 /// Gets or sets a reference to the actual protocol message that
41 /// is being sent via the user agent.
42 /// </summary>
43 internal IProtocolMessage OriginalMessage { get; set; }
45 /// <summary>
46 /// Automatically sends the appropriate response to the user agent.
47 /// Requires a current HttpContext.
48 /// </summary>
49 public void Send() {
50 throw new System.NotImplementedException();