2 implementations of IViewBufferScope
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Buffers\MemoryPoolViewBufferScope.cs (1)
11internal sealed class MemoryPoolViewBufferScope : IViewBufferScope, IDisposable
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestViewBufferScope.cs (1)
8public class TestViewBufferScope : IViewBufferScope
45 references to IViewBufferScope
Microsoft.AspNetCore.Mvc.Razor (5)
RazorPageBase.cs (3)
31private IViewBufferScope? _bufferScope; 158private IViewBufferScope BufferScope 165_bufferScope = services.GetRequiredService<IViewBufferScope>();
RazorView.cs (2)
25private IViewBufferScope? _bufferScope; 84_bufferScope = context.HttpContext.RequestServices.GetRequiredService<IViewBufferScope>();
Microsoft.AspNetCore.Mvc.Razor.Test (3)
RazorPageTest.cs (2)
1407IViewBufferScope bufferScope = null, 1416.AddSingleton<IViewBufferScope>(bufferScope)
RazorViewTest.cs (1)
1790.AddScoped<IViewBufferScope, TestViewBufferScope>()
Microsoft.AspNetCore.Mvc.TagHelpers (3)
PartialTagHelper.cs (3)
30private readonly IViewBufferScope _viewBufferScope; 36/// <param name="viewBufferScope">The <see cref="IViewBufferScope"/>.</param> 39IViewBufferScope viewBufferScope)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (6)
PartialTagHelperTest.cs (6)
25var tagHelper = new PartialTagHelper(Mock.Of<ICompositeViewEngine>(), Mock.Of<IViewBufferScope>()) 46var tagHelper = new PartialTagHelper(Mock.Of<ICompositeViewEngine>(), Mock.Of<IViewBufferScope>()) 73var tagHelper = new PartialTagHelper(Mock.Of<ICompositeViewEngine>(), Mock.Of<IViewBufferScope>()) 92var tagHelper = new PartialTagHelper(Mock.Of<ICompositeViewEngine>(), Mock.Of<IViewBufferScope>()) 114var tagHelper = new PartialTagHelper(Mock.Of<ICompositeViewEngine>(), Mock.Of<IViewBufferScope>()) 136var tagHelper = new PartialTagHelper(Mock.Of<ICompositeViewEngine>(), Mock.Of<IViewBufferScope>())
Microsoft.AspNetCore.Mvc.ViewFeatures (24)
Buffers\MemoryPoolViewBufferScope.cs (1)
9/// A <see cref="IViewBufferScope"/> that uses pooled memory.
Buffers\ViewBuffer.cs (4)
12/// An <see cref="IHtmlContentBuilder"/> that is backed by a buffer provided by <see cref="IViewBufferScope"/>. 22private readonly IViewBufferScope _bufferScope; 31/// <param name="bufferScope">The <see cref="IViewBufferScope"/>.</param> 34public ViewBuffer(IViewBufferScope bufferScope, string name, int pageSize)
DefaultDisplayTemplates.cs (4)
109var viewBufferScope = serviceProvider.GetRequiredService<IViewBufferScope>(); 210var viewBufferScope = serviceProvider.GetRequiredService<IViewBufferScope>();
DefaultEditorTemplates.cs (4)
91var viewBufferScope = serviceProvider.GetRequiredService<IViewBufferScope>(); 252var viewBufferScope = serviceProvider.GetRequiredService<IViewBufferScope>();
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
209services.TryAddScoped<IViewBufferScope, MemoryPoolViewBufferScope>();
HtmlHelper.cs (2)
54private readonly IViewBufferScope _bufferScope; 65IViewBufferScope bufferScope,
HtmlHelperOfT.cs (1)
29IViewBufferScope bufferScope,
TemplateBuilder.cs (2)
17private readonly IViewBufferScope _bufferScope; 30IViewBufferScope bufferScope,
TemplateRenderer.cs (2)
72private readonly IViewBufferScope _bufferScope; 80IViewBufferScope bufferScope,
ViewComponents\DefaultViewComponentHelper.cs (3)
25private readonly IViewBufferScope _viewBufferScope; 36/// <param name="viewBufferScope">The <see cref="IViewBufferScope"/> that manages the lifetime of 43IViewBufferScope viewBufferScope)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
Rendering\DefaultTemplatesUtilities.cs (1)
274.AddSingleton<IViewBufferScope, TestViewBufferScope>()
ViewComponentResultTest.cs (1)
679services.AddSingleton<IViewBufferScope, TestViewBufferScope>();
ViewComponents\DefaultViewComponentHelperTest.cs (2)
145var viewBufferScope = Mock.Of<IViewBufferScope>();