add support for Terms and Conditions Seeding in Configuration Support ...

This commit is contained in:
2026-05-27 15:00:21 +03:30
parent ac168ed7c1
commit 661a17fb97
4 changed files with 242 additions and 11 deletions
+8 -3
View File
@@ -11,6 +11,7 @@ using xIdentityModels.Models;
using xPushService.Constants;
using xStringService.Interfaces.Dtos;
using xStringService.Models.Dtos;
using xTermsAndConditionsService.Configuration;
using xTermsAndConditionsService.Hubs;
using xTermsAndConditionsService.Interfaces;
@@ -28,6 +29,7 @@ namespace xTermsAndConditionsService.Providers
private readonly IHubContext<XTermsHub> hub;
private readonly XAppConfiguration appConfiguration;
private readonly IXStringServiceProvider stringProvider;
private readonly XTermsAndConditionsServiceConfiguration serviceConfiguration;
#endregion
//
@@ -35,15 +37,18 @@ namespace xTermsAndConditionsService.Providers
public XTermsAndComditionsProvider(
XAppConfiguration appConfiguration,
IXStringServiceProvider stringProvider,
IHubContext<XTermsHub> hub = null,
string termsId = "terms"
XTermsAndConditionsServiceConfiguration serviceConfiguration,
IHubContext<XTermsHub> hub = null
)
{
//
this.hub = hub;
this.termsId = termsId;
this.stringProvider = stringProvider;
this.appConfiguration = appConfiguration;
this.serviceConfiguration = serviceConfiguration;
//
termsId = serviceConfiguration.ResourceTitle;
//
// Specified roles for Handling Dangerouse Actions ...