Example #1
0
        public void Dispose()
        {
            if (OriginalResponse != null)
            {
                OriginalResponse.Dispose();
                OriginalResponse = null;
            }

            if (ResponseStream != null)
            {
                ResponseStream.Dispose();
                ResponseStream = null;

                /*if (streamKey != null)
                 * {
                 *  streamCache.ClearAsync(streamKey, StreamType.File).Wait();
                 * }*/
            }
        }
Example #2
0
 public void End()
 {
     Body.Flush();
     OriginalResponse.End();
 }
Example #3
0
 public void Redirect(string url, bool permanent)
 {
     OriginalResponse.Redirect(url, permanent);
     End();
 }
 public virtual void AddHeader(string key, string value)
 {
     OriginalResponse.AddHeader(key, value);
 }
 public virtual void SetCookie(string key, string value, HttpCookieOptions options)
 {
     OriginalResponse.SetCookie(key, value, options);
 }
 public virtual void End()
 {
     OriginalResponse.End();
 }
 public void End()
 {
     Body.Flush();
     _isEnded = true;
     OriginalResponse.End();
 }
Example #8
0
 public Task WriteAsync(string text, CancellationToken token)
 {
     return(OriginalResponse.WriteAsync(text, token));
 }
Example #9
0
 public Task WriteAsync(string text)
 {
     return(OriginalResponse.WriteAsync(text));
 }
Example #10
0
 public void Write(byte[] data)
 {
     OriginalResponse.Write(data);
 }
Example #11
0
 public void Write(string text)
 {
     OriginalResponse.Write(text);
 }