From 313897e91152e547c07f38e7ece7d8c2cc1ab2cc Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Thu, 30 Jul 2026 14:25:05 +0330 Subject: [PATCH] refactor and add using constants instead of hard coded strings ... --- .../XTermsAndConditionsServiceConstants.cs | 24 +++++++++++++++++++ DI/XDIHelperExtension.cs | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 Constants/XTermsAndConditionsServiceConstants.cs diff --git a/Constants/XTermsAndConditionsServiceConstants.cs b/Constants/XTermsAndConditionsServiceConstants.cs new file mode 100644 index 0000000..5b767e9 --- /dev/null +++ b/Constants/XTermsAndConditionsServiceConstants.cs @@ -0,0 +1,24 @@ +namespace xTermsAndConditionsService.Constants +{ + public struct XTermsAndConditionsServiceConstants + { + // + // Service Extensions Log Tag ... + public const string XTermsAndConditionsServiceDILogTag = "XTermsAndConditionsService"; + + // + // Table Mapping Identifiers ... + + // + // GraphQL Collection Mappings ... + + // + // Hubs ... + + // + // Custome Constants ... + + // + // EF Repositories Helper Extensions ... + } +} \ No newline at end of file diff --git a/DI/XDIHelperExtension.cs b/DI/XDIHelperExtension.cs index 7fa73df..8c382d9 100644 --- a/DI/XDIHelperExtension.cs +++ b/DI/XDIHelperExtension.cs @@ -214,7 +214,7 @@ namespace xTermsAndConditionsService.DI /// /// a LogTag for Service ... /// - private static string XLogTag = "XTermsAndConditionsService"; + private static string XLogTag = XTermsAndConditionsServiceConstants.XTermsAndConditionsServiceDILogTag; /// /// print a log in Console ...