2022-12-07 14:05:11 +01:00
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
2026-04-07 14:23:29 +02:00
|
|
|
namespace Finch.Context;
|
2022-12-07 14:05:11 +01:00
|
|
|
|
2026-04-07 14:23:29 +02:00
|
|
|
internal class FinchContextModule : FinchModule
|
2022-12-07 14:05:11 +01:00
|
|
|
{
|
|
|
|
|
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
|
|
|
|
|
{
|
2026-04-07 14:23:29 +02:00
|
|
|
services.AddScoped<IFinchContext, FinchContext>();
|
2022-12-07 14:05:11 +01:00
|
|
|
services.AddHttpContextAccessor();
|
|
|
|
|
}
|
|
|
|
|
}
|