Add project files.

This commit is contained in:
Konstantin Hintermayer
2025-04-30 15:58:45 +02:00
parent 4d08d59c93
commit f884c684e1
41 changed files with 1770 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 SZUAbsolventenverein.Module.EventRegistration.Repository;
using SZUAbsolventenverein.Module.EventRegistration.Services;
namespace SZUAbsolventenverein.Module.EventRegistration.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<IEventRegistrationService, ServerEventRegistrationService>();
services.AddDbContextFactory<EventRegistrationContext>(opt => { }, ServiceLifetime.Transient);
}
}
}