protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); DiSetup.AdminApp(); DiHelper.Register<INavigationPresenter, WpfNavigationPresenter>(Lifetime.Singleton); DiSetup.Initialize(); }
public FilesCalculatorViewModel() { DiSetup.Initialize(); _fileDialogConfigurer = DiSetup.Container.Resolve <IFileDialogConfigurer>(); FilesInfo = new List <FileInformation>(); _calculatorService = DiSetup.Container.Resolve <ICalculatorService>(); }
static void Main(string[] args) { DiSetup.ConsoleApp(); DiSetup.Initialize(); initMenu(); while (!isQuitting) { renderMenu(); ConsoleKeyInfo choice = Console.ReadKey(true); if (menuEntries.Keys.Any(x => x.Equals(choice))) { menuEntries[choice].Execute(); } } }
public Startup(IConfiguration configuration) { this.Configuration = configuration; DiSetup.PermissionServer(); DiSetup.Initialize(); }
public Startup(IConfiguration configuration) { this.Configuration = configuration; DiSetup.ClientServer(); DiSetup.Initialize(); }