Skip to content

Commit

Permalink
add CoreModule
Browse files Browse the repository at this point in the history
  • Loading branch information
yasemingerboga committed Mar 11, 2021
1 parent 3556c9c commit 5d262a7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions FinalProject/Core/DependencyResolvers/CoreModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Core.Utilities.IoC;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace Core.DependencyResolvers
{
public class CoreModule : ICoreModule
{
public void Load(IServiceCollection serviceCollection)
{
serviceCollection.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
}
}
}

0 comments on commit 5d262a7

Please sign in to comment.