Files
Module.BlackBoard/Server/Startup/ServerStartup.cs

29 lines
894 B
C#

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