Esempio n. 1
0
        /// <summary>
        /// This is required because we may want to replace the output stream and get the correct
        /// behavior from components call RenderText() or RenderSection()
        /// </summary>
        public IDisposable SetOutputWriter(TextWriter newOutputWriter)
        {
            ReturnOutputStreamToInitialWriter disposable = new ReturnOutputStreamToInitialWriter(OutputWriter, this);

            _outputWriter = newOutputWriter;
            return(disposable);
        }
Esempio n. 2
0
        /// <summary>
        /// This is required because we may want to replace the output stream and get the correct
        /// behavior from components call RenderText() or RenderSection()
        /// </summary>
        IDisposable IViewBaseInternal.SetDisposeableOutputWriter(TextWriter newWriter)
        {
            ReturnOutputStreamToInitialWriter disposable = new ReturnOutputStreamToInitialWriter(OutputWriter, this);

            outputWriter = newWriter;
            return(disposable);
        }
Esempio n. 3
0
        /// <summary>
        /// This is required because we may want to replace the output stream and get the correct
        /// behavior from components call RenderText() or RenderSection()
        /// </summary>
        public IDisposable SetOutputStream(TextWriter newOutputStream)
        {
            var disposable = new ReturnOutputStreamToInitialWriter(Output.TextWriter, this);

            Output.TextWriter = newOutputStream;
            return(disposable);
        }
Esempio n. 4
0
 /// <summary>
 /// This is required because we may want to replace the output stream and get the correct
 /// behavior from components call RenderText() or RenderSection()
 /// </summary>
 public IDisposable SetOutputStream(TextWriter newOutputStream)
 {
     var disposable = new ReturnOutputStreamToInitialWriter(Output.TextWriter, this);
     Output.TextWriter = newOutputStream;
     return disposable;
 }
Esempio n. 5
0
		/// <summary>
		/// This is required because we may want to replace the output stream and get the correct
		/// behavior from components call RenderText() or RenderSection()
		/// </summary>	
		IDisposable IViewBaseInternal.SetDisposeableOutputWriter(TextWriter newWriter)
		{
			ReturnOutputStreamToInitialWriter disposable = new ReturnOutputStreamToInitialWriter(OutputWriter, this);
			outputWriter = newWriter;
			return disposable;
		}
Esempio n. 6
0
		/// <summary>
		/// This is required because we may want to replace the output stream and get the correct
		/// behavior from components call RenderText() or RenderSection()
		/// </summary>
		public IDisposable SetOutputStream(TextWriter newOutputStream)
		{
			ReturnOutputStreamToInitialWriter disposable = new ReturnOutputStreamToInitialWriter(OutputStream, this);
			outputStream = newOutputStream;
			return disposable;
		}
Esempio n. 7
0
		/// <summary>
		/// This is required because we may want to replace the output stream and get the correct
		/// behavior from components call RenderText() or RenderSection()
		/// </summary>
		public IDisposable SetOutputWriter(TextWriter newOutputWriter)
		{
			ReturnOutputStreamToInitialWriter disposable = new ReturnOutputStreamToInitialWriter(OutputWriter, this);
			_outputWriter = newOutputWriter;
			return disposable;
		}