Ensures the default PublishedModelFactory is always registered. Ensures AddModelsBuilder is done when adding the website (not required for the back office).

This commit is contained in:
Shannon
2021-02-01 16:53:24 +11:00
parent 624739e697
commit 2a41cec263
18 changed files with 165 additions and 128 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Text;
using Umbraco.Core.Events;
@@ -22,22 +22,17 @@ namespace Umbraco.Web.Common.ModelBinders
/// <summary>
/// Gets the type of the source object.
/// </summary>
public Type SourceType { get; set; }
public Type SourceType { get; }
/// <summary>
/// Gets the type of the view model.
/// </summary>
public Type ModelType { get; set; }
public Type ModelType { get; }
/// <summary>
/// Gets the message string builder.
/// </summary>
/// <remarks>Handlers of the event can append text to the message.</remarks>
public StringBuilder Message { get; }
/// <summary>
/// Gets or sets a value indicating whether the application should restart.
/// </summary>
public bool Restart { get; set; }
}
}