mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-22 17:27:48 +00:00
added timer service to home controller
This commit is contained in:
@@ -11,7 +11,8 @@ using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using LiveGameFeed.Mappings;
|
||||
using LiveGameFeed.Core.Mappings;
|
||||
using LiveGameFeed.Core.MvcTimer;
|
||||
|
||||
namespace LiveGameFeed
|
||||
{
|
||||
@@ -38,6 +39,10 @@ namespace LiveGameFeed
|
||||
services.AddScoped<IMatchRepository, MatchRepository>();
|
||||
services.AddScoped<IFeedRepository, FeedRepository>();
|
||||
|
||||
// Timer service configuration
|
||||
services.AddSingleton<ITimerService, TimerService>();
|
||||
services.Configure<TimerServiceConfiguration>(Configuration.GetSection("TimeService"));
|
||||
|
||||
// Automapper Configuration
|
||||
AutoMapperConfiguration.Configure();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user