//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.Messaging { using System; using System.Diagnostics.Contracts; using System.IO; /// /// Code contract for the class. /// [ContractClassFor(typeof(IncomingWebResponse))] internal abstract class IncomingWebResponseContract : IncomingWebResponse { /// /// Gets the body of the HTTP response. /// /// public override Stream ResponseStream { get { throw new NotImplementedException(); } } /// /// Creates a text reader for the response stream. /// /// /// The text reader, initialized for the proper encoding. /// public override StreamReader GetResponseReader() { Contract.Ensures(Contract.Result() != null); throw new NotImplementedException(); } /// /// Gets an offline snapshot version of this instance. /// /// The maximum bytes from the response stream to cache. /// A snapshot version of this instance. /// /// If this instance is a creating a snapshot /// will automatically close and dispose of the underlying response stream. /// If this instance is a , the result will /// be the self same instance. /// internal override CachedDirectWebResponse GetSnapshot(int maximumBytesToCache) { Requires.InRange(maximumBytesToCache >= 0, "maximumBytesToCache"); Requires.ValidState(this.RequestUri != null); Contract.Ensures(Contract.Result() != null); throw new NotImplementedException(); } } }