Files
Umbraco-CMS/src/Umbraco.Core/Models/PublishedContent/ILivePublishedModelFactory.cs

34 lines
1000 B
C#
Raw Normal View History

2019-02-21 19:06:41 +01:00
namespace Umbraco.Core.Models.PublishedContent
{
2019-02-21 19:06:41 +01:00
/// <summary>
/// Provides a live published model creation service.
/// </summary>
public interface ILivePublishedModelFactory : IPublishedModelFactory
{
/// <summary>
/// Gets an object that can be used to synchronize access to the factory.
/// </summary>
object SyncRoot { get; }
/// <summary>
/// Refreshes the factory.
/// </summary>
/// <remarks>
/// <para>This will typically re-compiled models/classes into a new DLL that are used to populate the cache.</para>
/// <para>This is called prior to refreshing the cache.</para>
/// </remarks>
2019-02-21 19:06:41 +01:00
void Refresh();
/// <summary>
/// Tells the factory that it should build a new generation of models
/// </summary>
void Reset();
/// <summary>
/// If the live model factory
/// </summary>
bool Enabled { get; }
2019-02-21 19:06:41 +01:00
}
}