Rename models builder modes (#10272)

* Renaming AppData Models Builder mode

* Renaming PureLive Models Builder mode to Runtime

* ModelsBuilderAssembly attribute flags if models are "Live" or not

* Updated ModelsMode names

* Only add tag if it is not a pull request. Apparently this is not allowed when it is from a fork.

* Revert "Only add tag if it is not a pull request. Apparently this is not allowed when it is from a fork."

This reverts commit 92b33f3c

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Callum Whyte
2021-05-26 07:36:21 +01:00
committed by GitHub
parent 0358e2aff7
commit b07f6519e7
21 changed files with 554 additions and 546 deletions

View File

@@ -16,7 +16,7 @@ namespace Umbraco.Extensions
/// </summary>
public static bool IsLiveFactoryEnabled(this IPublishedModelFactory factory)
{
if (factory is ILivePublishedModelFactory liveFactory)
if (factory is IAutoPublishedModelFactory liveFactory)
{
return liveFactory.Enabled;
}
@@ -26,14 +26,14 @@ namespace Umbraco.Extensions
}
/// <summary>
/// Sets a flag to reset the ModelsBuilder models if the <see cref="IPublishedModelFactory"/> is <see cref="ILivePublishedModelFactory"/>
/// Sets a flag to reset the ModelsBuilder models if the <see cref="IPublishedModelFactory"/> is <see cref="IAutoPublishedModelFactory"/>
/// </summary>
/// <remarks>
/// This does not recompile the pure live models, only sets a flag to tell models builder to recompile when they are requested.
/// This does not recompile the InMemory models, only sets a flag to tell models builder to recompile when they are requested.
/// </remarks>
internal static void WithSafeLiveFactoryReset(this IPublishedModelFactory factory, Action action)
{
if (factory is ILivePublishedModelFactory liveFactory)
if (factory is IAutoPublishedModelFactory liveFactory)
{
lock (liveFactory.SyncRoot)
{