diff --git a/EnotaryoPH/EnotaryoPH.Web/EnotaryoPH.Web.csproj b/EnotaryoPH/EnotaryoPH.Web/EnotaryoPH.Web.csproj index 71cda82..10e1fc5 100644 --- a/EnotaryoPH/EnotaryoPH.Web/EnotaryoPH.Web.csproj +++ b/EnotaryoPH/EnotaryoPH.Web/EnotaryoPH.Web.csproj @@ -21,6 +21,9 @@ + + + diff --git a/EnotaryoPH/EnotaryoPH.Web/Program.cs b/EnotaryoPH/EnotaryoPH.Web/Program.cs index aa0bcda..52f7435 100644 --- a/EnotaryoPH/EnotaryoPH.Web/Program.cs +++ b/EnotaryoPH/EnotaryoPH.Web/Program.cs @@ -9,6 +9,7 @@ using EnotaryoPH.Web.Common.Jobs; using EnotaryoPH.Web.Common.Models; using Exadel.Compreface.Clients.CompreFaceClient; using Microsoft.AspNetCore.Authentication.Cookies; +using Syncfusion.Licensing; namespace EnotaryoPH.Web { @@ -37,6 +38,9 @@ namespace EnotaryoPH.Web builder.Services.AddSingleton(); var config = builder.Configuration; + builder.Services.AddTransient(provider => config); + + SyncfusionLicenseProvider.RegisterLicense(config.GetValue("SyncfusionLicenseKey")); builder.Services.AddDbContext(); builder.Services.AddHttpContextAccessor(); diff --git a/EnotaryoPH/EnotaryoPH.Web/appsettings.json b/EnotaryoPH/EnotaryoPH.Web/appsettings.json index 434ba75..16e6807 100644 --- a/EnotaryoPH/EnotaryoPH.Web/appsettings.json +++ b/EnotaryoPH/EnotaryoPH.Web/appsettings.json @@ -24,5 +24,7 @@ "Password": "" } }, - "BaseUrl": "https://localhost:7121" + "BaseUrl": "https://localhost:7121", + "SyncfusionLicenseKey": "secret", + "UriRecordingBloblContainer": "secret" } \ No newline at end of file