/// <summary> /// Initializes a new instance. /// </summary> public DynamicWebResponse(DynamicWebRequest request) : base() { Contract.Requires <ArgumentNullException>(request != null); this.request = request; }
/// <summary> /// Initializes a new instance. /// </summary> public DynamicWebResponse(DynamicWebRequest request) : base() { Contract.Requires<ArgumentNullException>(request != null); this.request = request; }
/// <summary> /// Initializes a new instance. /// </summary> /// <param name="request"></param> /// <param name="getFunc"></param> public FuncResponse(DynamicWebRequest request, Func <Stream> getFunc) : base(request) { Contract.Requires <ArgumentNullException>(request != null); Contract.Requires <ArgumentNullException>(getFunc != null); this.getFunc = getFunc; }
/// <summary> /// Initializes a new instance. /// </summary> /// <param name="request"></param> /// <param name="getFunc"></param> public FuncResponse(DynamicWebRequest request, Func<Stream> getFunc) : base(request) { Contract.Requires<ArgumentNullException>(request != null); Contract.Requires<ArgumentNullException>(getFunc != null); this.getFunc = getFunc; }
public override WebResponse GetResponse(DynamicWebRequest request) { return(new FuncResponse(request, getFunc)); }
public override WebResponse GetResponse(DynamicWebRequest request) { return new FuncResponse(request, getFunc); }
/// <summary> /// Gets the response for the given registered request. /// </summary> /// <returns></returns> public virtual WebResponse GetResponse(DynamicWebRequest request) { throw new InvalidOperationException(); }