forked from sim0n00ps/OF-DL
28 lines
763 B
C#
28 lines
763 B
C#
using Avalonia;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using OF_DL.Services;
|
|
using Serilog;
|
|
|
|
namespace OF_DL.Gui;
|
|
|
|
public static class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
ServiceCollection services = new();
|
|
services.AddSingleton<ILoggingService, LoggingService>();
|
|
ServiceProvider tempProvider = services.BuildServiceProvider();
|
|
ILoggingService loggingService = tempProvider.GetRequiredService<ILoggingService>();
|
|
|
|
Log.Information("Starting OF DL GUI");
|
|
|
|
BuildAvaloniaApp()
|
|
.StartWithClassicDesktopLifetime(args);
|
|
}
|
|
|
|
private static AppBuilder BuildAvaloniaApp() =>
|
|
AppBuilder.Configure<App>()
|
|
.UsePlatformDetect()
|
|
.LogToTrace();
|
|
}
|