refactor and add using constants instead of hard coded strings ...
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user