v10: Fix build warnings in Web.Common (#12349)
* Run code cleanup * Run dotnet format * Start manual cleanup in Web.Common * Finish up manual cleanup * Fix tests * Fix up InMemoryModelFactory.cs * Inject proper macroRenderer * Update src/Umbraco.Web.Common/Filters/JsonDateTimeFormatAttribute.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Web.Common/Filters/ValidateUmbracoFormRouteStringAttribute.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Fix based on review Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk> Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
This commit is contained in:
@@ -1,29 +1,28 @@
|
||||
using Microsoft.AspNetCore.Mvc.ViewFeatures;
|
||||
|
||||
namespace Umbraco.Cms.Web.Common.Controllers
|
||||
namespace Umbraco.Cms.Web.Common.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// A request feature to allowing proxying viewdata from one controller to another
|
||||
/// </summary>
|
||||
public sealed class ProxyViewDataFeature
|
||||
{
|
||||
/// <summary>
|
||||
/// A request feature to allowing proxying viewdata from one controller to another
|
||||
/// Initializes a new instance of the <see cref="ProxyViewDataFeature" /> class.
|
||||
/// </summary>
|
||||
public sealed class ProxyViewDataFeature
|
||||
public ProxyViewDataFeature(ViewDataDictionary viewData, ITempDataDictionary tempData)
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ProxyViewDataFeature"/> class.
|
||||
/// </summary>
|
||||
public ProxyViewDataFeature(ViewDataDictionary viewData, ITempDataDictionary tempData)
|
||||
{
|
||||
ViewData = viewData;
|
||||
TempData = tempData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="ViewDataDictionary"/>
|
||||
/// </summary>
|
||||
public ViewDataDictionary ViewData { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="ITempDataDictionary"/>
|
||||
/// </summary>
|
||||
public ITempDataDictionary TempData { get; }
|
||||
ViewData = viewData;
|
||||
TempData = tempData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="ViewDataDictionary" />
|
||||
/// </summary>
|
||||
public ViewDataDictionary ViewData { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="ITempDataDictionary" />
|
||||
/// </summary>
|
||||
public ITempDataDictionary TempData { get; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user