Compare commits
10
Commits
54a6c7c26b
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d2dc674f9 | ||
|
|
e97451f6f6 | ||
|
|
ce1828325f | ||
|
|
118a9b1b4b | ||
|
|
b3d4e3bd4b | ||
|
|
d9c3328855 | ||
|
|
c2d9472ce8 | ||
|
|
bcfe7b7de1 | ||
|
|
67edd50046 | ||
|
|
777e6a7f8a |
@@ -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
|
||||||
|
)
|
||||||
|
{ }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
)
|
||||||
|
{ }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
@@ -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>
|
||||||
Reference in New Issue
Block a user