1
//-----------------------------------------------------------------------
2 // <copyright file="IndirectMessage.cs" company="Andrew Arnott">
3 // Copyright (c) Andrew Arnott. All rights reserved.
5 //-----------------------------------------------------------------------
7 namespace DotNetOAuth
{
11 /// A protocol message that passes between Consumer and Service Provider
12 /// via the user agent using a redirect or form POST submission.
15 /// An <see cref="IndirectMessage"/> instance describes the HTTP response that must
16 /// be sent to the user agent to initiate the message transfer.
18 public class IndirectMessage
{
20 /// Gets the headers that must be included in the response to the user agent.
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.
27 public WebHeaderCollection Headers { get; internal set; }
30 /// Gets the body of the HTTP response.
32 public byte[] Body { get; internal set; }
35 /// Gets the HTTP status code to use in the HTTP response.
37 public HttpStatusCode Status { get; internal set; }
40 /// Gets or sets a reference to the actual protocol message that
41 /// is being sent via the user agent.
43 internal IProtocolMessage OriginalMessage { get; set; }
46 /// Automatically sends the appropriate response to the user agent.
47 /// Requires a current HttpContext.
50 throw new System
.NotImplementedException();