Files
Module.PremiumArea/Server/Startup/ServerStartup.cs
2026-01-15 15:22:05 +01:00

29 lines
900 B
C#

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