mirror of https://github.com/AMT-Cheif/Stylet.git
20 lines
567 B
C#
20 lines
567 B
C#
using FluentValidation;
|
|
using Stylet.Samples.ModelValidation.Pages;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
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();
|
|
}
|
|
}
|
|
}
|