Compare commits

..
10 Commits
Author SHA1 Message Date
saherelm 1d2dc674f9 last ... 2026-07-26 21:18:15 +03:30
saherelm e97451f6f6 add support of xWebinar Service ... 2026-07-24 19:47:06 +03:30
saherelm ce1828325f add Category Service Configuration Registering for handle Seeding ... 2026-07-24 02:50:29 +03:30
saherelm 118a9b1b4b last ... 2026-06-12 23:42:59 +03:30
saherelm b3d4e3bd4b add Category and SubCategory Controller ... 2026-06-12 17:23:05 +03:30
saherelm d9c3328855 Update Lang Version to 12 ... 2026-06-12 02:10:36 +03:30
saherelm c2d9472ce8 apply fix on GraphQL ... 2026-06-01 15:48:53 +03:30
saherelm bcfe7b7de1 last ... 2026-06-01 01:25:00 +03:30
saherelm 67edd50046 last ... 2026-06-01 01:05:10 +03:30
saherelm 777e6a7f8a last ... 2026-05-31 07:35:22 +03:30
6 changed files with 105 additions and 2 deletions
@@ -0,0 +1,35 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCategoryService.Controllers;
using xCategoryService.Interfaces;
using xCategoryService.Models.Entities;
using xCommons.Configurations;
using xCommons.Providers;
using xIdentityService.Interfaces;
namespace xServices.Controllers
{
public class XCategoryProviderController : XCategoryProviderControllerBase, IXCategoryProviderController
{
public XCategoryProviderController(
ILogger<XCategoryProviderController> logger,
XAppConfiguration appConfiguration,
IXIdentityProvider identityProvider,
XValidationProvider validationProvider,
IXCategoryProvider provider,
Func<IQueryable<XCategory>, IOrderedQueryable<XCategory>> defaultOrderBuilder = null,
Func<IQueryable<XCategory>, IIncludableQueryable<XCategory, object>> defaultIncludeBuilder = null
) : base(
logger,
appConfiguration,
identityProvider,
validationProvider,
provider,
defaultOrderBuilder,
defaultIncludeBuilder
)
{ }
}
}
+1 -1
View File
@@ -11,7 +11,7 @@ using xIdentityService.Interfaces;
namespace xServices.Controllers namespace xServices.Controllers
{ {
public class XFileProviderController : XFileProviderControllerBase public class XFileProviderController : XFileProviderControllerBase, IXFileProviderController
{ {
public XFileProviderController( public XFileProviderController(
ILogger<XFileProviderController> logger, ILogger<XFileProviderController> logger,
@@ -0,0 +1,35 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCategoryService.Controllers;
using xCategoryService.Interfaces;
using xCategoryService.Models.Entities;
using xCommons.Configurations;
using xCommons.Providers;
using xIdentityService.Interfaces;
namespace xServices.Controllers
{
public class XSubCategoryProviderController : XSubCategoryProviderControllerBase, IXSubCategoryProviderController
{
public XSubCategoryProviderController(
ILogger<XSubCategoryProviderController> logger,
XAppConfiguration appConfiguration,
IXIdentityProvider identityProvider,
XValidationProvider validationProvider,
IXSubCategoryProvider provider,
Func<IQueryable<XSubCategory>, IOrderedQueryable<XSubCategory>> defaultOrderBuilder = null,
Func<IQueryable<XSubCategory>, IIncludableQueryable<XSubCategory, object>> defaultIncludeBuilder = null
) : base(
logger,
appConfiguration,
identityProvider,
validationProvider,
provider,
defaultOrderBuilder,
defaultIncludeBuilder
)
{ }
}
}
+16
View File
@@ -21,6 +21,7 @@ using xStorageService.DI;
using xStringService.DI; using xStringService.DI;
using xTagService.DI; using xTagService.DI;
using xTermsAndConditionsService.DI; using xTermsAndConditionsService.DI;
using xWebinarService.DI;
namespace xServices.DI namespace xServices.DI
{ {
@@ -207,11 +208,18 @@ namespace xServices.DI
app.UseXFileService( app.UseXFileService(
isDevelopmentEnvironment: isDevelopmentEnvironment isDevelopmentEnvironment: isDevelopmentEnvironment
); );
// //
// Using Category Service ... // Using Category Service ...
app.UseXCategoryService( app.UseXCategoryService(
isDevelopmentEnvironment: isDevelopmentEnvironment isDevelopmentEnvironment: isDevelopmentEnvironment
); );
//
// Using XWebinar Service ...
app.UsexWebinarService(
isDevelopmentEnvironment: isDevelopmentEnvironment
);
} }
// //
@@ -332,10 +340,18 @@ namespace xServices.DI
// //
// Register Category Service ... // Register Category Service ...
services.AddXCategoryServiceConfiguration(configuration);
services.AddXCategoryService<XApiDbContext>( services.AddXCategoryService<XApiDbContext>(
lifeTime: lifeTime, lifeTime: lifeTime,
repositoryType: repositoryType repositoryType: repositoryType
); );
//
// Register Webinar Service ...
services.AddXWebinarService<XApiDbContext>(
lifeTime: lifeTime,
repositoryType: repositoryType
);
} }
#endregion #endregion
} }
+6
View File
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using xCategoryService.Providers;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Db; using xDataService.Db;
using xDataService.Providers; using xDataService.Providers;
@@ -6,6 +7,7 @@ using xFileService.Providers;
using xServices.Models.Entities; using xServices.Models.Entities;
using xStringService.Providers; using xStringService.Providers;
using xTagService.Providers; using xTagService.Providers;
using xWebinarService.Providers;
// using xStringService.Models.Entities; // using xStringService.Models.Entities;
namespace xServices.Databases namespace xServices.Databases
@@ -34,6 +36,10 @@ namespace xServices.Databases
nameof(XTagEntityRegisterar), nameof(XTagEntityRegisterar),
nameof(XFileEntityRegisterar), nameof(XFileEntityRegisterar),
nameof(XStringEntityRegisterar), nameof(XStringEntityRegisterar),
nameof(XWebinarEntityRegisterar),
nameof(XCategoryEntityRegisterar),
nameof(XSubCategoryEntityRegisterar),
nameof(XWebinarSubscriberEntityRegisterar),
} }
) )
{ } { }
+12 -1
View File
@@ -1,12 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<!-- Runtime Definition --> <!-- Runtime Definition -->
<PropertyGroup> <PropertyGroup>
<Version>1.0.0</Version> <Version>1.0.0</Version>
<LangVersion>8.0</LangVersion> <LangVersion>12.0</LangVersion>
<PackageId>xSaherelm.xServices</PackageId> <PackageId>xSaherelm.xServices</PackageId>
<Authors>Hadi Khazaee Asl</Authors> <Authors>Hadi Khazaee Asl</Authors>
<Company>SaherElm IT Center</Company> <Company>SaherElm IT Center</Company>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<Description> <Description>
it is a Part of xSaherElm project which integrated and implements all Required Services ... it is a Part of xSaherElm project which integrated and implements all Required Services ...
</Description> </Description>
@@ -41,6 +43,15 @@
<ProjectReference Include="..\xMessageService\xMessageService.csproj" /> <ProjectReference Include="..\xMessageService\xMessageService.csproj" />
<ProjectReference Include="..\xStorageService\xStorageService.csproj" /> <ProjectReference Include="..\xStorageService\xStorageService.csproj" />
<ProjectReference Include="..\xCategoryService\xCategoryService.csproj" /> <ProjectReference Include="..\xCategoryService\xCategoryService.csproj" />
<ProjectReference Include="..\xWebinarService\xWebinarService.csproj" />
<ProjectReference Include="..\xTermsAndConditionsService\xTermsAndConditionsService.csproj" /> <ProjectReference Include="..\xTermsAndConditionsService\xTermsAndConditionsService.csproj" />
</ItemGroup> </ItemGroup>
<!-- For XML Documentation Support -->
<PropertyGroup>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>
</Project> </Project>