예제 #1
0
        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        public DynamicWebResponse(DynamicWebRequest request)
            : base()
        {
            Contract.Requires <ArgumentNullException>(request != null);

            this.request = request;
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        public DynamicWebResponse(DynamicWebRequest request)
            : base()
        {
            Contract.Requires<ArgumentNullException>(request != null);

            this.request = request;
        }
예제 #3
0
            /// <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;
            }
예제 #4
0
            /// <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;
            }
예제 #5
0
 public override WebResponse GetResponse(DynamicWebRequest request)
 {
     return(new FuncResponse(request, getFunc));
 }
예제 #6
0
 public override WebResponse GetResponse(DynamicWebRequest request)
 {
     return new FuncResponse(request, getFunc);
 }
예제 #7
0
 /// <summary>
 /// Gets the response for the given registered request.
 /// </summary>
 /// <returns></returns>
 public virtual WebResponse GetResponse(DynamicWebRequest request)
 {
     throw new InvalidOperationException();
 }
예제 #8
0
 /// <summary>
 /// Gets the response for the given registered request.
 /// </summary>
 /// <returns></returns>
 public virtual WebResponse GetResponse(DynamicWebRequest request)
 {
     throw new InvalidOperationException();
 }