25 lines
622 B
C#
25 lines
622 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Toolkit.Framework.Foundation;
|
|
|
|
public class ContentTemplateDescriptor : IContentTemplateDescriptor
|
|
{
|
|
public ContentTemplateDescriptor(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; }
|
|
} |