You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using DiscordChatExporter.Core.Services;
|
|
|
|
|
using StyletIoC;
|
|
|
|
|
|
|
|
|
|
namespace DiscordChatExporter.Cli
|
|
|
|
|
{
|
|
|
|
|
public static class Container
|
|
|
|
|
{
|
|
|
|
|
public static IContainer Instance { get; }
|
|
|
|
|
|
|
|
|
|
static Container()
|
|
|
|
|
{
|
|
|
|
|
var builder = new StyletIoCBuilder();
|
|
|
|
|
|
|
|
|
|
// Autobind services in the .Core assembly
|
|
|
|
|
builder.Autobind(typeof(DataService).Assembly);
|
|
|
|
|
|
|
|
|
|
// Bind settings as singleton
|
|
|
|
|
builder.Bind<SettingsService>().ToSelf().InSingletonScope();
|
|
|
|
|
|
|
|
|
|
// Set instance
|
|
|
|
|
Instance = builder.BuildContainer();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|