Documentation pass
All checks were successful
Nuget Pkg Build / build (push) Successful in 22s

This commit is contained in:
Samuele Lorefice
2025-09-21 20:48:41 +02:00
parent bf46d235af
commit e2cc807f70
5 changed files with 64 additions and 6 deletions

View File

@@ -1,8 +1,27 @@
namespace Syrette;
public class ServiceDescriptor {
/// <summary>
/// Describes a service for dependency injection, including its type, implementation, lifetime, and required dependencies.
/// </summary>
public class ServiceDescriptor
{
/// <summary>
/// Gets or sets the type of the service to be provided.
/// </summary>
public required Type ServiceType { get; set; }
/// <summary>
/// Gets or sets the concrete type that implements the service.
/// </summary>
public required Type ImplementationType { get; set; }
/// <summary>
/// Gets or sets the lifetime of the service (e.g., Singleton or Transient).
/// </summary>
public required ServiceLifetime Lifetime { get; set; }
/// <summary>
/// Gets or sets the list of types required by the implementation (dependencies).
/// </summary>
public List<Type> RequiredTypes { get; set; } = new();
}