Avalonia Boilerplate

This commit is contained in:
Jöran Malek 2024-02-09 01:23:38 +01:00
parent a6d5a3eb72
commit 0d32e6a5c3
14 changed files with 117 additions and 23 deletions

View file

@ -0,0 +1,19 @@
using InkForge.Common.Controllers;
using InkForge.Common.Data;
using InkForge.Data;
namespace Microsoft.Extensions.DependencyInjection;
public static class InkForgeServiceCollections
{
public static IServiceCollection AddInkForge(this IServiceCollection services)
{
services.AddHttpClient();
services.AddDbContextFactory<NoteDbContext, NoteDbContextFactory>();
services.AddSingleton<WorkspaceController>();
return services;
}
}