diff --git a/GameOn.Application/DependencyInjection.cs b/GameOn.Application/DependencyInjection.cs
index d069ace..5bbce6b 100644
--- a/GameOn.Application/DependencyInjection.cs
+++ b/GameOn.Application/DependencyInjection.cs
@@ -2,6 +2,8 @@
// Copyright (c) LeadOn's Corp'. All rights reserved.
//
+using GameOn.Common.Exceptions;
+
namespace GameOn.Application
{
using System.Reflection;
@@ -20,7 +22,11 @@ public static class DependencyInjection
/// IServiceCollection.
public static IServiceCollection AddApplication(this IServiceCollection services)
{
- services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly()));
+ services.AddMediatR(cfg =>
+ {
+ cfg.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly());
+ cfg.LicenseKey = Environment.GetEnvironmentVariable("MEDIATR_LICENSE_KEY") ?? throw new MissingEnvironmentVariableException("MEDIATR_LICENSE_KEY");
+ });
services.AddExternal();
return services;
}
diff --git a/GameOn.Application/GameOn.Application.csproj b/GameOn.Application/GameOn.Application.csproj
index 081733f..829acfa 100644
--- a/GameOn.Application/GameOn.Application.csproj
+++ b/GameOn.Application/GameOn.Application.csproj
@@ -42,8 +42,8 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/GameOn.Common/GameOn.Common.csproj b/GameOn.Common/GameOn.Common.csproj
index 97decdf..8ef22a6 100644
--- a/GameOn.Common/GameOn.Common.csproj
+++ b/GameOn.Common/GameOn.Common.csproj
@@ -42,7 +42,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/GameOn.Documentation/GameOn! API.postman_collection.json b/GameOn.Documentation/GameOn! API.postman_collection.json
index b9fe0de..f24ca70 100644
--- a/GameOn.Documentation/GameOn! API.postman_collection.json
+++ b/GameOn.Documentation/GameOn! API.postman_collection.json
@@ -1,7 +1,7 @@
{
"info": {
"_postman_id": "1319992f-a208-4bcb-91f5-9faa28794297",
- "name": "GameOn! 5.2.3",
+ "name": "GameOn! 5.2.9",
"description": "This API goal is to monitor players performance across real-world and virtual games.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "6882080"
diff --git a/GameOn.Documentation/GameOn!.swagger.json b/GameOn.Documentation/GameOn!.swagger.json
index 964c5e1..13d50fd 100644
--- a/GameOn.Documentation/GameOn!.swagger.json
+++ b/GameOn.Documentation/GameOn!.swagger.json
@@ -7,7 +7,7 @@
"name": "Valentin Virot",
"email": "virot.valentin@gmail.com"
},
- "version": "5.2.3"
+ "version": "5.2.9"
},
"paths": {
"/Admin/dashboard": {
diff --git a/GameOn.External/GameOn.External.csproj b/GameOn.External/GameOn.External.csproj
index d407bb1..69659cf 100644
--- a/GameOn.External/GameOn.External.csproj
+++ b/GameOn.External/GameOn.External.csproj
@@ -42,8 +42,8 @@
-
-
+
+
all
diff --git a/GameOn.Persistence/GameOn.Persistence.csproj b/GameOn.Persistence/GameOn.Persistence.csproj
index 33cd622..9aa8847 100644
--- a/GameOn.Persistence/GameOn.Persistence.csproj
+++ b/GameOn.Persistence/GameOn.Persistence.csproj
@@ -42,12 +42,12 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/GameOn.Presentation/GameOn.Presentation.csproj b/GameOn.Presentation/GameOn.Presentation.csproj
index fe0dfd5..19cd582 100644
--- a/GameOn.Presentation/GameOn.Presentation.csproj
+++ b/GameOn.Presentation/GameOn.Presentation.csproj
@@ -42,14 +42,14 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
+
diff --git a/GameOn.Presentation/Program.cs b/GameOn.Presentation/Program.cs
index a398a94..5ff77ab 100644
--- a/GameOn.Presentation/Program.cs
+++ b/GameOn.Presentation/Program.cs
@@ -1,6 +1,6 @@
//
// Copyright (c) LeadOn's Corp'. All rights reserved.
-//
+// ddd
#pragma warning disable SA1200 // Using directives should be placed correctly
using GameOn.Application;
@@ -23,7 +23,7 @@
c.EnableAnnotations();
c.SwaggerDoc("v1", new Microsoft.OpenApi.Models.OpenApiInfo
{
- Version = "5.2.3",
+ Version = "5.4.0",
Title = "LeadOn's Corp - GameOn! API",
Description = "This API goal is to monitor players performance across multiple games.",
Contact = new Microsoft.OpenApi.Models.OpenApiContact
diff --git a/GameOn.Presentation/Properties/launchSettings.json b/GameOn.Presentation/Properties/launchSettings.json
index b2e3258..9d7a494 100644
--- a/GameOn.Presentation/Properties/launchSettings.json
+++ b/GameOn.Presentation/Properties/launchSettings.json
@@ -13,7 +13,8 @@
"DEFAULT_PLATFORM": "",
"RIOT_GAMES_ACCOUNT_API_ROUTE": "",
"RIOT_GAMES_SUMMONER_API_ROUTE": "",
- "RIOT_GAMES_API_KEY": ""
+ "RIOT_GAMES_API_KEY": "",
+ "MEDIATR_LICENSE_KEY": ""
},
"dotnetRunMessages": true,
"applicationUrl": "http://localhost:5184"