Files
Module.HallOfFame/Server/Startup/ServerStartup.cs
Adam Gaiswinkler 5dfa690432 Initial commit
2026-01-02 22:52:11 +01:00

29 lines
894 B
C#

using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Oqtane.Infrastructure;
using SZUAbsolventenverein.Module.HallOfFame.Repository;
using SZUAbsolventenverein.Module.HallOfFame.Services;
namespace SZUAbsolventenverein.Module.HallOfFame.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<IHallOfFameService, ServerHallOfFameService>();
services.AddDbContextFactory<HallOfFameContext>(opt => { }, ServiceLifetime.Transient);
}
}
}