Refactor using XResourceProvider Feature of XString Service ...
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using xCommons.Extensions;
|
||||
using xStringService.Interfaces.Dtos;
|
||||
using xStringService.Providers;
|
||||
using xTermsAndConditionsService.Configuration;
|
||||
using xTermsAndConditionsService.Interfaces;
|
||||
|
||||
namespace xTermsAndConditionsService.Providers
|
||||
{
|
||||
/// <summary>
|
||||
/// an Implementation of Terms and Conditions Management Provided Actions ...
|
||||
/// </summary>
|
||||
public class XTermsAndConditionsProvider : XBaseResourceProvider, IXTermsAndConditionsProvider
|
||||
{
|
||||
public XTermsAndConditionsProvider(
|
||||
IXStringServiceProvider provider,
|
||||
XTermsAndConditionsServiceConfiguration configuration
|
||||
) : base(
|
||||
resource: "NULL",
|
||||
provider
|
||||
)
|
||||
{
|
||||
//
|
||||
// Since we nee to Set Resource Title of Terms and Conditions
|
||||
// during instancing using Provided Configurations ...
|
||||
// set this value here ...
|
||||
resource = configuration.ResourceTitle;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user