AdaskoTheBeAsT.FluentValidation.SimpleInjector alternatives and similar packages
Based on the "IoC" category.
Alternatively, view AdaskoTheBeAsT.FluentValidation.SimpleInjector alternatives based on common mentions on social networks and blogs.
-
Autofac
An addictive .NET IoC container -
Ninject
The ninja of .net dependency injectors -
Unity
Lightweight extensible dependency injection container with support for constructor, property, and method call injection -
Castle Windsor
Castle Windsor is best of breed, mature Inversion of Control container available for .NET and Silverlight -
Scrutor
Assembly scanning extensions for Microsoft.Extensions.DependencyInjection. -
StructureMap
The original IoC/DI Container for .Net -
Simple Injector
Simple Injector is an easy-to-use Dependency Injection (DI) library for .NET 4+ that supports Silverlight 4+, Windows Phone 8, Windows 8 including Universal apps and Mono. -
TinyIoC
Single-file, easy and cross-platform IoC container -
LightInject
A ultra lightweight IoC container -
DryIoc
Simple, fast all fully featured IoC container. -
DryIoc is fast, small, full-featured IoC Container for .NET
DryIoc is fast, small, full-featured IoC Container for .NET -
Lamar
A fast IoC container heavily optimized for usage within ASP.NET Core and other .NET server side applications. -
VS MEF
Managed Extensibility Framework (MEF) implementation used by Visual Studio. -
Meet Grace
Grace is a feature rich dependency injection container library -
Stashbox
A lightweight, portable dependency injection framework for .NET based solutions. -
Simplify.DI
A common interface for IOC containers. Decouples users and frameworks (that are based on Simplify.DI) from dependency on IOC containers. -
ServiceLayer
Design and Implement ServiceLayer that Integrated With FluentValidation -
AdaskoTheBeAsT.AutoMapper.SimpleInjector
AutoMapper extensions for SimpleInjector
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of AdaskoTheBeAsT.FluentValidation.SimpleInjector or a related project?
README
AdaskoTheBeAsT.FluentValidation.SimpleInjector
FluentValidation extensions to SimpleInjector
Badges
Usage
This library scans assemblies and adds implementations of IValidator<>
to the SimpleInjector container.
There are few options to use with Container
instance:
- Marker type from assembly which will be scanned
container.AddFluentValidation(typeof(MyValidator), type2 /*, ...*/);
- List of assemblies which will be scanned.
Below is sample for scanning assemblies from some solution.
```cs
[ExcludeFromCodeCoverage]
public static class FluentValidationConfigurator
{
private const string NamespacePrefix = "YourNamespace";
public static void Configure(Container container)
{
var loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies().ToList();
var assemblies = new List<Assembly>();
var mainAssembly = typeof(FluentValidationConfigurator).Assembly;
var refAssemblies = mainAssembly.GetReferencedAssemblies();
foreach (var assemblyName in refAssemblies
.Where(a => a.FullName.StartsWith(NamespacePrefix, StringComparison.OrdinalIgnoreCase)))
{
var assembly = loadedAssemblies.Find(l => l.FullName == assemblyName.FullName)
?? AppDomain.CurrentDomain.Load(assemblyName);
assemblies.Add(assembly);
}
container.AddFluentValidation(assemblies);
}
}
1. Special configuration action with different lifetime for validators
```cs
container.AddFluentValidation(
cfg =>
{
cfg.WithAssembliesToScan(assemblies);
cfg.AsScoped();
});