2021-02-18 08:14:27 +01:00
|
|
|
using System;
|
2019-06-24 11:58:36 +02:00
|
|
|
|
2021-02-22 09:00:33 +01:00
|
|
|
namespace Umbraco.Cms.Infrastructure.ModelsBuilder
|
2019-06-24 11:58:36 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates that an Assembly is a Models Builder assembly.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[AttributeUsage(AttributeTargets.Assembly /*, AllowMultiple = false, Inherited = false*/)]
|
|
|
|
|
public sealed class ModelsBuilderAssemblyAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2021-05-26 07:36:21 +01:00
|
|
|
/// Gets or sets a value indicating whether the assembly is a InMemory assembly.
|
2019-06-24 11:58:36 +02:00
|
|
|
/// </summary>
|
2021-05-26 07:36:21 +01:00
|
|
|
/// <remarks>A Models Builder assembly can be either InMemory or a normal Dll.</remarks>
|
|
|
|
|
public bool IsInMemory { get; set; }
|
2019-06-24 11:58:36 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a hash value representing the state of the custom source code files
|
|
|
|
|
/// and the Umbraco content types that were used to generate and compile the assembly.
|
|
|
|
|
/// </summary>
|
2022-02-24 14:39:29 +01:00
|
|
|
public string? SourceHash { get; set; }
|
2019-06-24 11:58:36 +02:00
|
|
|
}
|
|
|
|
|
}
|