apply fix on GraphQL ...

This commit is contained in:
2026-06-01 15:48:33 +03:30
parent 0400b685f0
commit ee967371c9
4 changed files with 43 additions and 41 deletions
+34 -26
View File
@@ -87,8 +87,8 @@ namespace xCategoryService.DI
// //
// SubCategory ... // SubCategory ...
pushHelper.AddHub<XSubCategoryDtoHub>("subCategoryDto"); // pushHelper.AddHub<XSubCategoryDtoHub>("subCategoryDto");
pushHelper.AddHub<XSubCategoryEntityHub>("subCategoryEntity"); // pushHelper.AddHub<XSubCategoryEntityHub>("subCategoryEntity");
// //
app.UseXPushService(pushHelper); app.UseXPushService(pushHelper);
@@ -109,11 +109,11 @@ namespace xCategoryService.DI
// Using XSubCategory Repository Descriptor ... // Using XSubCategory Repository Descriptor ...
if (!subCategoryDescriptor.IsNull()) if (!subCategoryDescriptor.IsNull())
{ {
// // //
app.UseXRepository( // app.UseXRepository(
descriptor: subCategoryDescriptor, // descriptor: subCategoryDescriptor,
isDevelopmentEnvironment: isDevelopmentEnvironment // isDevelopmentEnvironment: isDevelopmentEnvironment
); // );
} }
} }
@@ -239,17 +239,25 @@ namespace xCategoryService.DI
// //
// Register Category Repository Descriptor ... // Register Category Repository Descriptor ...
if (!categoryDescriptor.IsNull())
{
//
services.AddXRepository( services.AddXRepository(
lifeTime: lifeTime, lifeTime: lifeTime,
descriptor: categoryDescriptor descriptor: categoryDescriptor
); );
}
// //
// Register SubCategory Repository Descriptor ... // Register SubCategory Repository Descriptor ...
if (!subCategoryDescriptor.IsNull())
{
//
services.AddXRepository( services.AddXRepository(
lifeTime: lifeTime, lifeTime: lifeTime,
descriptor: subCategoryDescriptor descriptor: subCategoryDescriptor
); );
}
// //
#region Register Services ... #region Register Services ...
@@ -279,26 +287,26 @@ namespace xCategoryService.DI
// //
#region SubCategory ... #region SubCategory ...
// // //
// Models ... // // Models ...
services.Add( // services.Add(
new ServiceDescriptor(typeof(IXSubCategoryServiceProvider), typeof(XSubCategoryServiceProvider), lifeTime) // new ServiceDescriptor(typeof(IXSubCategoryServiceProvider), typeof(XSubCategoryServiceProvider), lifeTime)
); // );
services.Add( // services.Add(
new ServiceDescriptor(typeof(IXSubCategoryRepositoryService), typeof(XSubCategoryRepositoryService), lifeTime) // new ServiceDescriptor(typeof(IXSubCategoryRepositoryService), typeof(XSubCategoryRepositoryService), lifeTime)
); // );
services.Add( // services.Add(
new ServiceDescriptor(typeof(IXSubCategoryRepositoryProvider), typeof(XSubCategoryRepositoryProvider), lifeTime) // new ServiceDescriptor(typeof(IXSubCategoryRepositoryProvider), typeof(XSubCategoryRepositoryProvider), lifeTime)
); // );
// // //
// Resource Providers ... // // Resource Providers ...
services.Add( // services.Add(
new ServiceDescriptor(typeof(IXSubCategoryTitleResourceProvider), typeof(XSubCategoryTitleResourceProvider), lifeTime) // new ServiceDescriptor(typeof(IXSubCategoryTitleResourceProvider), typeof(XSubCategoryTitleResourceProvider), lifeTime)
); // );
services.Add( // services.Add(
new ServiceDescriptor(typeof(IXSubCategoryDescriptionResourceProvider), typeof(XSubCategoryDescriptionResourceProvider), lifeTime) // new ServiceDescriptor(typeof(IXSubCategoryDescriptionResourceProvider), typeof(XSubCategoryDescriptionResourceProvider), lifeTime)
); // );
#endregion #endregion
#endregion #endregion
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR; using Microsoft.AspNetCore.SignalR;
using xCategoryService.Interfaces.Entities; using xCategoryService.Interfaces.Entities;
using xCategoryService.Models.Entities; using xCategoryService.Models.Entities;
@@ -3,7 +3,6 @@ using xCategoryService.Interfaces.Entities;
using xCategoryService.Models.Entities; using xCategoryService.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.GraphQL; using xDataService.GraphQL;
using xDataService.Interfaces;
namespace xCategoryService.Providers.GraphQL namespace xCategoryService.Providers.GraphQL
{ {
@@ -9,6 +9,5 @@ namespace xCategoryService.Providers.GraphQL
{ {
Query = (XSubCategoryGraphQuery)services.GetService(typeof(XSubCategoryGraphQuery)); Query = (XSubCategoryGraphQuery)services.GetService(typeof(XSubCategoryGraphQuery));
} }
} }
} }