3 writes to ViewComponentContext
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
ViewComponents\DefaultViewComponentActivatorTests.cs (2)
28
expectedInstance.
ViewComponentContext
= context;
52
expectedInstance.
ViewComponentContext
= context;
ViewComponentTests.cs (1)
249
viewComponent.
ViewComponentContext
= viewComponentContext;
9 references to ViewComponentContext
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
ViewComponent.cs (7)
87
var services =
ViewComponentContext
.ViewContext?.HttpContext?.RequestServices;
89
_url = factory?.GetUrlHelper(
ViewComponentContext
.ViewContext!);
103
/// Gets or sets the <see cref="
ViewComponentContext
"/>.
129
public ViewContext ViewContext =>
ViewComponentContext
.ViewContext;
134
public ViewDataDictionary ViewData =>
ViewComponentContext
.ViewData;
139
public ITempDataDictionary TempData =>
ViewComponentContext
.TempData;
151
var services =
ViewComponentContext
.ViewContext?.HttpContext?.RequestServices;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ViewComponents\DefaultViewComponentActivatorTests.cs (2)
35
Assert.Same(context, instance.
ViewComponentContext
);
59
Assert.Same(context, instance.
ViewComponentContext
);