mirror of https://github.com/AMT-Cheif/Stylet.git
16 lines
465 B
C#
16 lines
465 B
C#
using System;
|
|
using FluentValidation;
|
|
using Stylet.Samples.ModelValidation.Pages;
|
|
|
|
namespace Stylet.Samples.ModelValidation
|
|
{
|
|
public class Bootstrapper : Bootstrapper<ShellViewModel>
|
|
{
|
|
protected override void ConfigureIoC(StyletIoC.IStyletIoCBuilder builder)
|
|
{
|
|
builder.Bind(typeof(IModelValidator<>)).To(typeof(FluentModelValidator<>));
|
|
builder.Bind(typeof(IValidator<>)).ToAllImplementations();
|
|
}
|
|
}
|
|
}
|