Stylet/Samples/Stylet.Samples.ModelValidation/Bootstrapper.cs

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();
}
}
}