blob: ae7104cf389dd5ddc9f4f6e7c20d2eb5f55c017d (
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
|
//-----------------------------------------------------------------------
// <copyright file="RequestContract.cs" company="Andrew Arnott">
// Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.OpenId.Provider {
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
using DotNetOpenAuth.Messaging;
/// <summary>
/// Code contract for the <see cref="Request"/> class.
/// </summary>
[ContractClassFor(typeof(Request))]
internal abstract class RequestContract : Request {
/// <summary>
/// Prevents a default instance of the <see cref="RequestContract"/> class from being created.
/// </summary>
private RequestContract() : base((Version)null, null) {
}
/// <summary>
/// Gets a value indicating whether the response is ready to be sent to the user agent.
/// </summary>
/// <remarks>
/// This property returns false if there are properties that must be set on this
/// request instance before the response can be sent.
/// </remarks>
public override bool IsResponseReady {
get { throw new NotImplementedException(); }
}
/// <summary>
/// Gets the response message, once <see cref="IsResponseReady"/> is <c>true</c>.
/// </summary>
protected override IProtocolMessage ResponseMessage {
get {
Requires.ValidState(this.IsResponseReady);
Contract.Ensures(Contract.Result<IProtocolMessage>() != null);
throw new NotImplementedException();
}
}
}
}
|