Update to MvvmCross 8; Replace SteamfrontendAPI with fork to fix DLC issues; code refactoring
This commit is contained in:
parent
991f52e87e
commit
95361440f6
12 changed files with 89 additions and 35 deletions
29
auto-creamapi/Setup.cs
Normal file
29
auto-creamapi/Setup.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
using auto_creamapi.Core;
|
||||
using auto_creamapi.Utils;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using MvvmCross.Platforms.Wpf.Core;
|
||||
using Serilog;
|
||||
using Serilog.Extensions.Logging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace auto_creamapi
|
||||
{
|
||||
public class Setup : MvxWpfSetup<MainApplication>
|
||||
{
|
||||
protected override ILoggerFactory CreateLogFactory()
|
||||
{
|
||||
Log.Logger = MyLogger.Log;
|
||||
|
||||
return new SerilogLoggerFactory();
|
||||
}
|
||||
|
||||
protected override ILoggerProvider CreateLogProvider()
|
||||
{
|
||||
return new SerilogLoggerProvider();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue