15 writes to Item
Microsoft.AspNetCore.Mvc.Razor (2)
Compilation\CompiledViewDescriptor.cs (2)
29
Item
= item;
49
Item
= item;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
229
Item
= precompiledView.Item,
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (10)
RuntimeViewCompilerTest.cs (10)
264
Item
= new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[]
302
Item
= new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[] { }),
337
Item
= new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[]
371
Item
= new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[]
399
Item
= new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[]
429
Item
= new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[]
466
Item
= new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[]
502
Item
= new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[]
542
Item
= new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[]
877
Item
= CreateForView(path),
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Compilation\DefaultRazorPageFactoryProviderTest.cs (2)
55
Item
= TestRazorCompiledItem.CreateForView(typeof(TestRazorPage), relativePath),
81
Item
= TestRazorCompiledItem.CreateForView(typeof(TestRazorPage), relativePath),
29 references to Item
Microsoft.AspNetCore.Mvc.Razor (1)
Compilation\CompiledViewDescriptor.cs (1)
98
public Type? Type =>
Item
?.Type;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (6)
RuntimeViewCompiler.cs (6)
164
if (item.Descriptor?.
Item
!= null &&
165
ChecksumValidator.IsItemValid(_projectEngine.FileSystem, item.Descriptor.
Item
))
199
if (precompiledView.
Item
== null || !ChecksumValidator.IsRecompilationSupported(precompiledView.
Item
))
229
Item = precompiledView.
Item
,
282
var checksums = precompiledView.
Item
.GetChecksumMetadata();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (9)
RuntimeViewCompilerTest.cs (9)
276
Assert.Same(precompiledView.
Item
, result.Item);
284
Assert.Same(precompiledView.
Item
, result.Item);
349
Assert.Same(precompiledView.
Item
, result.Item);
411
Assert.Same(precompiledView.
Item
, result.Item);
441
Assert.Same(precompiledView.
Item
, result.Item);
478
Assert.Same(precompiledView.
Item
, result.Item);
485
Assert.Same(precompiledView.
Item
, result.Item);
523
Assert.Same(precompiledView.
Item
, result.Item);
555
Assert.Same(precompiledView.
Item
, result.Item);
Microsoft.AspNetCore.Mvc.Razor.Test (9)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (9)
31
Assert.Equal(new[] { item1, item2 }, feature.ViewDescriptors.Select(d => d.
Item
));
60
Assert.Equal(new[] { item1, item2 }, feature.ViewDescriptors.Select(d => d.
Item
));
84
Assert.Equal(new[] { item1, item2 }, feature.ViewDescriptors.Select(d => d.
Item
));
129
Assert.Equal(new[] { item1, item2 }, feature.ViewDescriptors.Select(d => d.
Item
));
141
Assert.Same(item.
Item
, item1);
145
Assert.Same(typeof(TestReloadedPage), item.
Item
.Type);
146
Assert.Same("Item2", item.
Item
.Identifier);
147
Assert.Equal("mvc.1.0.razor-page", item.
Item
.Kind);
148
Assert.Contains(typeof(RouteAttribute), item.
Item
.Metadata.Select(m => m.GetType())); // Verify we pick up new attributes
Microsoft.AspNetCore.Mvc.RazorPages (4)
ApplicationModels\CompiledPageRouteModelProvider.cs (4)
71
if (viewDescriptor.
Item
!= null)
73
return viewDescriptor.
Item
.Kind == RazorPageDocumentKind;
122
if (viewDescriptor.
Item
!= null)
124
return viewDescriptor.
Item
.Metadata