using CommonServiceLocator; using DiscordChatExporter.Core.Services; using GalaSoft.MvvmLight.Ioc; namespace DiscordChatExporter.Cli { public class Container { public Container() { ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default); SimpleIoc.Default.Reset(); // Services SimpleIoc.Default.Register(); SimpleIoc.Default.Register(); SimpleIoc.Default.Register(); SimpleIoc.Default.Register(); } public T Resolve(string key = null) { return ServiceLocator.Current.GetInstance(key); } } }