24 lines
605 B
C#
24 lines
605 B
C#
|
|
using Microsoft.AspNetCore.Mvc.Razor;
|
|||
|
|
|
|||
|
|
namespace Application.Common
|
|||
|
|
{
|
|||
|
|
public class ComponentsViewLocationExpander : IViewLocationExpander
|
|||
|
|
{
|
|||
|
|
public void PopulateValues(ViewLocationExpanderContext context)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public IEnumerable<string> ExpandViewLocations(ViewLocationExpanderContext context, IEnumerable<string> viewLocations)
|
|||
|
|
{
|
|||
|
|
var componentLocations = new[]
|
|||
|
|
{
|
|||
|
|
"/{0}.cshtml/"
|
|||
|
|
//,
|
|||
|
|
//"/Components/{1}/"
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
return componentLocations.Concat(viewLocations);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|