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)
65
throw 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
"/>.
403
var writer =
Output
;
433
/// Writes the specified <paramref name="value"/> with HTML encoding to <see cref="
Output
"/>.
438
var 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
"/>.
471
Output
.Write(value);
672
/// Invokes <see cref="TextWriter.FlushAsync()"/> on <see cref="
Output
"/> and <see cref="m:Stream.FlushAsync"/>
700
await
Output
.FlushAsync();
Microsoft.AspNetCore.Mvc.Razor.Test (28)
RazorPageTest.cs (9)
218
var originalWriter = page.
Output
;
225
Assert.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")
1448
var bufferedWriter = Assert.IsType<ViewBufferTextWriter>(
Output
);
RazorViewTest.cs (19)
34
actual = v.
Output
;
286
actual = v.
Output
;
665
await v.
Output
.WriteAsync("head-content");
669
await v.
Output
.WriteAsync("foot-content");
768
await v.
Output
.WriteAsync("page-section-content");
778
await v.
Output
.WriteLineAsync("layout-section-content");
836
await v.
Output
.WriteAsync("page-section-content");
846
await v.
Output
.WriteLineAsync("layout-section-content");
900
await v.
Output
.WriteLineAsync("foo-content");
963
await v.
Output
.WriteLineAsync("foo-content");
978
await v.
Output
.WriteLineAsync("dont-render-inner-foo");
1074
await v.
Output
.WriteLineAsync("foo-content");
1084
v.DefineSection("bar", () => v.
Output
.WriteLineAsync("bar-content"));
1140
await v.
Output
.WriteLineAsync("foo-content");
1154
v.DefineSection("bar", () => v.
Output
.WriteLineAsync("bar-content"));
1313
await v.
Output
.WriteLineAsync("foo-content");
1324
await v.
Output
.WriteLineAsync(htmlEncoder.Encode(v.RenderSection("foo").ToString()));
1516
v.
Output
.WriteLine("foo-content");
1527
v.DefineSection("bar", () => v.
Output
.WriteLineAsync("bar-content"));