This commit is contained in:
2026-05-22 20:22:53 +03:30
parent 576ef22d6f
commit 362851e12e
6 changed files with 17 additions and 9 deletions
+2
View File
@@ -1,5 +1,6 @@
using System;
using System.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
@@ -11,6 +12,7 @@ using xServices.Models.Entities;
namespace xServices.Controllers
{
[AllowAnonymous]
public partial class XTestRepositoryController : XBaseRepositoryController<XTest, Guid>, IXBaseRepositoryController<XTest, Guid>
{
public XTestRepositoryController(
@@ -1,5 +1,6 @@
using System;
using System.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
@@ -13,6 +14,7 @@ using xServices.Providers;
namespace xServices.Controllers
{
[AllowAnonymous]
public class XTestRepositoryProviderController : XBaseRepositoryProviderController<XTest, Guid, XTestEntityHub>, IXBaseRepositoryProviderController<XTest, Guid, XTestEntityHub>
{
public XTestRepositoryProviderController(
@@ -21,8 +23,8 @@ namespace xServices.Controllers
IXIdentityProvider identityProvider,
XValidationProvider validationProvider,
IXTestRepositoryProvider provider,
Func<IQueryable<XTest>, IOrderedQueryable<XTest>> defaultOrderBuilder,
Func<IQueryable<XTest>, IIncludableQueryable<XTest, object>> defaultIncludeBuilder
Func<IQueryable<XTest>, IOrderedQueryable<XTest>> defaultOrderBuilder = null,
Func<IQueryable<XTest>, IIncludableQueryable<XTest, object>> defaultIncludeBuilder = null
) : base(
logger,
appConfiguration,
+2
View File
@@ -1,5 +1,6 @@
using System;
using System.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
@@ -12,6 +13,7 @@ using xServices.Models.Entities;
namespace xServices.Controllers
{
[AllowAnonymous]
public class XTestServiceController : XBaseServiceController<XTest, XTestDto, Guid>, IXBaseServiceController<XTest, XTestDto, Guid>
{
public XTestServiceController(
@@ -1,5 +1,6 @@
using System;
using System.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
@@ -14,6 +15,7 @@ using xServices.Providers;
namespace xServices.Controllers
{
[AllowAnonymous]
public class XTestServiceProviderController : XBaseServiceProviderController<XTest, XTestDto, Guid, XTestDtoHub>, IXBaseServiceProviderController<XTest, XTestDto, Guid, XTestDtoHub>
{
public XTestServiceProviderController(
@@ -22,8 +24,8 @@ namespace xServices.Controllers
IXIdentityProvider identityProvider,
XValidationProvider validationProvider,
IXTestServiceProvider provider,
Func<IQueryable<XTest>, IOrderedQueryable<XTest>> defaultOrderBuilder,
Func<IQueryable<XTest>, IIncludableQueryable<XTest, object>> defaultIncludeBuilder
Func<IQueryable<XTest>, IOrderedQueryable<XTest>> defaultOrderBuilder = null,
Func<IQueryable<XTest>, IIncludableQueryable<XTest, object>> defaultIncludeBuilder = null
) : base(
logger,
appConfiguration,
+4 -4
View File
@@ -216,10 +216,10 @@ namespace xServices.DI
//
#region Register Identity Service ...
// services.AddXIdentityService(
// configuration: configuration,
// lifeTime: ServiceLifetime.Scoped
// );
services.AddXIdentityService(
configuration: configuration,
lifeTime: ServiceLifetime.Scoped
);
#endregion
//
+1 -1
View File
@@ -3,6 +3,6 @@
<packageSources>
<!-- <add key="megan" value="https://hub.megan.ir/nuget/index.json" /> -->
<add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="baget" value="https://nuget.saherelmhub.ir/v3/index.json" protocolVersion="3" />
<add key="baget" value="https://nuget.saherelmhub.ir/v3/index.json" protocolVersion="3" disableTLSCertificateValidation="true" />
</packageSources>
</configuration>