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