Provides a fluent API for registering decorator chains using Scrutor, with support for lifetime configuration and duplicate decorator prevention. Requires .NET 8.0 or later.
$ dotnet add package FluentScrutorA lightweight .NET library providing a convenient fluent API for registering decorator chains using the popular Scrutor library. It simplifies configuring the base service lifetime and helps prevent common configuration errors.
While Scrutor provides powerful decoration capabilities, registering multiple decorators and configuring the base service can sometimes involve repetitive code. FluentScrutor wraps Scrutor's decoration features in an intuitive, chainable API, making your dependency injection setup cleaner and more readable.
ServiceLifetime (Singleton, Scoped, Transient) for the base service implementation within the fluent chain.Microsoft.Extensions.DependencyInjection in modern .NET applications.Microsoft.Extensions.DependencyInjection.Abstractions (This is typically included when using ASP.NET Core or .NET Generic Host).Install the package via the .NET CLI:
dotnet add package FluentScrutor