Add project files.

This commit is contained in:
Adams
2025-04-07 11:47:28 +02:00
parent 616c50c0b9
commit 796a98dd89
42 changed files with 1871 additions and 0 deletions

View File

@ -0,0 +1,28 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Oqtane.Infrastructure;
using AdamGais.Module.AnmeldeTool.Repository;
using AdamGais.Module.AnmeldeTool.Services;
namespace AdamGais.Module.AnmeldeTool.Startup
{
public class ServerStartup : IServerStartup
{
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
// not implemented
}
public void ConfigureMvc(IMvcBuilder mvcBuilder)
{
// not implemented
}
public void ConfigureServices(IServiceCollection services)
{
services.AddTransient<IAnmeldeToolService, ServerAnmeldeToolService>();
services.AddDbContextFactory<AnmeldeToolContext>(opt => { }, ServiceLifetime.Transient);
}
}
}