44 references to Output
Microsoft.AspNetCore.Mvc.Razor (16)
RazorPage.cs (4)
85/// <remarks>The method writes to the <see cref="RazorPageBase.Output"/> and the value returned is a token 101/// <remarks>The method writes to the <see cref="RazorPageBase.Output"/> and the value returned is a token 121/// <remarks>The method writes to the <see cref="RazorPageBase.Output"/> and the value returned is a token 140/// <remarks>The method writes to the <see cref="RazorPageBase.Output"/> and the value returned is a token
RazorPageBase.cs (12)
65throw new InvalidOperationException(Resources.FormatViewContextMustBeSet(nameof(ViewContext), nameof(Output))); 215/// All writes to the <see cref="Output"/> or <see cref="ViewContext.Writer"/> after calling this method will 263/// All writes to the <see cref="Output"/> or <see cref="ViewContext.Writer"/> after calling this method will 393/// Writes the specified <paramref name="value"/> with HTML encoding to <see cref="Output"/>. 403var writer = Output; 433/// Writes the specified <paramref name="value"/> with HTML encoding to <see cref="Output"/>. 438var writer = Output; 450/// Writes the specified <paramref name="value"/> without HTML encoding to <see cref="Output"/>. 464/// Writes the specified <paramref name="value"/> without HTML encoding to <see cref="Output"/>. 471Output.Write(value); 672/// Invokes <see cref="TextWriter.FlushAsync()"/> on <see cref="Output"/> and <see cref="m:Stream.FlushAsync"/> 700await Output.FlushAsync();
Microsoft.AspNetCore.Mvc.Razor.Test (28)
RazorPageTest.cs (9)
218var originalWriter = page.Output; 225Assert.Same(originalWriter, page.Output); 426{ "bar", () => page.Output.WriteAsync(expected) } 748{ "not-ignored-section", () => page.Output.WriteAsync("not-ignored-section-content") } 807"footer", () => page.Output.WriteLineAsync("Footer section") 810"header", () => page.Output.WriteLineAsync("Header section") 813"async-header", () => page.Output.WriteLineAsync("Async Header section") 816"async-footer", () => page.Output.WriteLineAsync("Async Footer section") 1448var bufferedWriter = Assert.IsType<ViewBufferTextWriter>(Output);
RazorViewTest.cs (19)
34actual = v.Output; 286actual = v.Output; 665await v.Output.WriteAsync("head-content"); 669await v.Output.WriteAsync("foot-content"); 768await v.Output.WriteAsync("page-section-content"); 778await v.Output.WriteLineAsync("layout-section-content"); 836await v.Output.WriteAsync("page-section-content"); 846await v.Output.WriteLineAsync("layout-section-content"); 900await v.Output.WriteLineAsync("foo-content"); 963await v.Output.WriteLineAsync("foo-content"); 978await v.Output.WriteLineAsync("dont-render-inner-foo"); 1074await v.Output.WriteLineAsync("foo-content"); 1084v.DefineSection("bar", () => v.Output.WriteLineAsync("bar-content")); 1140await v.Output.WriteLineAsync("foo-content"); 1154v.DefineSection("bar", () => v.Output.WriteLineAsync("bar-content")); 1313await v.Output.WriteLineAsync("foo-content"); 1324await v.Output.WriteLineAsync(htmlEncoder.Encode(v.RenderSection("foo").ToString())); 1516v.Output.WriteLine("foo-content"); 1527v.DefineSection("bar", () => v.Output.WriteLineAsync("bar-content"));