mirror of https://github.com/AMT-Cheif/Stylet.git
19 lines
601 B
C#
19 lines
601 B
C#
using Stylet.Samples.RedditBrowser.Pages;
|
|
using Stylet.Samples.RedditBrowser.RedditApi;
|
|
using System;
|
|
|
|
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();
|
|
}
|
|
}
|
|
}
|