/// <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); }
/// <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); }
/// <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); }
/// <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; }
/// <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; }
/// <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; }
/// <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; }