refactor and add using constants instead of hard coded strings ...

This commit is contained in:
2026-07-30 14:25:38 +03:30
parent 33b4efde94
commit 7823dffcfa
5 changed files with 41 additions and 10 deletions
+6 -5
View File
@@ -10,6 +10,7 @@ using xDataService.Models;
using xExceptions.Constants;
using xPushService.DI;
using xPushService.Helpers;
using xTagService.Constants;
using xTagService.Helpers;
using xTagService.Interfaces;
using xTagService.Interfaces.Dtos;
@@ -80,8 +81,8 @@ namespace xTagService.DI
var pushHelper = new XPushServiceHelper();
//
pushHelper.AddHub<XTagDtoHub>("tagDto");
pushHelper.AddHub<XTagEntityHub>("tagEntity");
pushHelper.AddHub<XTagDtoHub>(XTagServiceConstants.XTagDtoHub);
pushHelper.AddHub<XTagEntityHub>(XTagServiceConstants.XTagEntityHub);
//
app.UseXPushService(pushHelper);
@@ -106,7 +107,7 @@ namespace xTagService.DI
/// <summary>
/// a LogTag for Service ...
/// </summary>
private static string XLogTag = "XTagService";
private static string XLogTag = XTagServiceConstants.XTagServiceDILogTag;
/// <summary>
/// print a log in Console ...
@@ -179,9 +180,9 @@ namespace xTagService.DI
//
descriptor = typeof(XTagServiceHelper)
.InvokeGenericMethod<XRepositoryDescriptor>(
methodName: "GetXTagEFRepositoryDescriptor",
args: null,
runtimeType: contextType,
args: null
methodName: XTagServiceConstants.GetXTagEFRepositoryDescriptor
);
break;