REST to a .Net Standard Library
Test REST in discord bot and WPF Small improvements
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Windows;
|
||||
using Caliburn.Micro;
|
||||
using LaDOSE.DesktopApp.Services;
|
||||
|
||||
using LaDOSE.DesktopApp.ViewModels;
|
||||
using LaDOSE.REST;
|
||||
|
||||
namespace LaDOSE.DesktopApp
|
||||
{
|
||||
@@ -18,14 +20,19 @@ namespace LaDOSE.DesktopApp
|
||||
|
||||
protected override void Configure()
|
||||
{
|
||||
|
||||
container = new SimpleContainer();
|
||||
|
||||
container.Singleton<IWindowManager, WindowManager>();
|
||||
|
||||
container.PerRequest<ShellViewModel>();
|
||||
container.Singleton<RestService>();
|
||||
|
||||
container.PerRequest<ShellViewModel>();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
protected override void OnStartup(object sender, StartupEventArgs e)
|
||||
{
|
||||
DisplayRootViewFor<ShellViewModel>();
|
||||
@@ -44,6 +51,7 @@ namespace LaDOSE.DesktopApp
|
||||
protected override void BuildUp(object instance)
|
||||
{
|
||||
container.BuildUp(instance);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user