Files
Toolkit2/Framework/Foundation/Templates/TemplateDescriptor.cs
T
Daniel Clark 0da4a37173 code sweep
2022-12-10 16:11:07 +00:00

25 lines
601 B
C#

using Microsoft.Extensions.DependencyInjection;
namespace Toolkit.Framework.Foundation;
public class TemplateDescriptor : ITemplateDescriptor
{
public TemplateDescriptor(Type dataType,
Type templateType,
string? name = null,
ServiceLifetime lifetime = ServiceLifetime.Transient)
{
TemplateType = templateType;
ContentType = dataType;
Name = name;
Lifetime = lifetime;
}
public ServiceLifetime Lifetime { get; }
public Type TemplateType { get; }
public Type ContentType { get; }
public string? Name { get; }
}