mirror of https://github.com/AMT-Cheif/Stylet.git
23 lines
703 B
C#
23 lines
703 B
C#
using Stylet.Samples.RedditBrowser.Pages;
|
|
using Stylet.Samples.RedditBrowser.RedditApi;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Stylet.Samples.RedditBrowser
|
|
{
|
|
public class Bootstrapper : Bootstrapper<ShellViewModel>
|
|
{
|
|
protected override void ConfigureIoC(StyletIoC.IStyletIoCBuilder builder)
|
|
{
|
|
base.ConfigureIoC(builder);
|
|
|
|
builder.Bind<IRedditClient>().To<RedditClient>().InSingletonScope();
|
|
builder.Bind<ISubredditViewModelFactory>().ToAbstractFactory();
|
|
builder.Bind<IPostCommentsViewModelFactory>().ToAbstractFactory();
|
|
}
|
|
}
|
|
}
|