Files
Syrette/Syrette/ServiceDescriptor.cs
Samuele Lorefice 043cba4b3f
Some checks failed
Nuget Pkg Build / build (push) Failing after 25s
Added support for multiple constructors and best match greedy resolution.
2025-09-21 21:30:41 +02:00

22 lines
700 B
C#

namespace Syrette;
/// <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; }
}