Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Web / PUSG.Web / Startup.cs
diff options
context:
space:
mode:
Commit1489a24d74985ef9e51fd9976fc580857062011c (patch)
Author
 ivaylo.zhelev <ivaylo.zhelev@solarwinds.com>
2021-02-28 14:22:18 +0200
Committer
 ivaylo.zhelev <ivaylo.zhelev@solarwinds.com>
2021-02-28 14:22:18 +0200
Filesd98fea7203c6dfabad2c692b1c9848e94fd69e76 /src/Web/PUSG.Web/Startup.cs
pusg-api-main.tar
pusg-api-main.tar.gz
pusg-api-main.zip
Parent5bd0777227894df6204cd8e52d19f019f296e910 (diff)
Added Event Service HEAD main
* Major Refactoring to Services (moved to correct namespace) * Fixed bug on Disconnect for HomeHub * Fixed bug with multiple notifications of end game (introduced new bug to fix later)
1 files changed, 3 insertions, 1 deletions
-rw-r--r--src/Web/PUSG.Web/Startup.cs4
diff --git a/src/Web/PUSG.Web/Startup.cs b/src/Web/PUSG.Web/Startup.cs
index 931903c..acb6cc9 100644
--- a/src/Web/PUSG.Web/Startup.cs
+++ b/src/Web/PUSG.Web/Startup.cs
@@ -4,7 +4,8 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using PUSG.Web.Hubs;
-using PUSG.Web.Static;
+using PUSG.Web.Services;
+using PUSG.Web.Events;
namespace PUSG.Web
{
@@ -20,6 +21,7 @@ namespace PUSG.Web
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
+ services.AddSingleton<IEventService, EventService>();
services.AddSingleton<ISessionService, SessionService>();
services.AddSingleton<IGameService, GameService>();
services.AddSingleton<GameLoopService>();