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;
using System.Linq; using System.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.EntityFrameworkCore.Query; using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using xCommons.Configurations; using xCommons.Configurations;
@@ -11,6 +12,7 @@ using xServices.Models.Entities;
namespace xServices.Controllers namespace xServices.Controllers
{ {
[AllowAnonymous]
public partial class XTestRepositoryController : XBaseRepositoryController<XTest, Guid>, IXBaseRepositoryController<XTest, Guid> public partial class XTestRepositoryController : XBaseRepositoryController<XTest, Guid>, IXBaseRepositoryController<XTest, Guid>
{ {
public XTestRepositoryController( public XTestRepositoryController(
@@ -1,5 +1,6 @@
using System; using System;
using System.Linq; using System.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.EntityFrameworkCore.Query; using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using xCommons.Configurations; using xCommons.Configurations;
@@ -13,6 +14,7 @@ using xServices.Providers;
namespace xServices.Controllers namespace xServices.Controllers
{ {
[AllowAnonymous]
public class XTestRepositoryProviderController : XBaseRepositoryProviderController<XTest, Guid, XTestEntityHub>, IXBaseRepositoryProviderController<XTest, Guid, XTestEntityHub> public class XTestRepositoryProviderController : XBaseRepositoryProviderController<XTest, Guid, XTestEntityHub>, IXBaseRepositoryProviderController<XTest, Guid, XTestEntityHub>
{ {
public XTestRepositoryProviderController( public XTestRepositoryProviderController(
@@ -21,8 +23,8 @@ namespace xServices.Controllers
IXIdentityProvider identityProvider, IXIdentityProvider identityProvider,
XValidationProvider validationProvider, XValidationProvider validationProvider,
IXTestRepositoryProvider provider, IXTestRepositoryProvider provider,
Func<IQueryable<XTest>, IOrderedQueryable<XTest>> defaultOrderBuilder, Func<IQueryable<XTest>, IOrderedQueryable<XTest>> defaultOrderBuilder = null,
Func<IQueryable<XTest>, IIncludableQueryable<XTest, object>> defaultIncludeBuilder Func<IQueryable<XTest>, IIncludableQueryable<XTest, object>> defaultIncludeBuilder = null
) : base( ) : base(
logger, logger,
appConfiguration, appConfiguration,
+2
View File
@@ -1,5 +1,6 @@
using System; using System;
using System.Linq; using System.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.EntityFrameworkCore.Query; using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using xCommons.Configurations; using xCommons.Configurations;
@@ -12,6 +13,7 @@ using xServices.Models.Entities;
namespace xServices.Controllers namespace xServices.Controllers
{ {
[AllowAnonymous]
public class XTestServiceController : XBaseServiceController<XTest, XTestDto, Guid>, IXBaseServiceController<XTest, XTestDto, Guid> public class XTestServiceController : XBaseServiceController<XTest, XTestDto, Guid>, IXBaseServiceController<XTest, XTestDto, Guid>
{ {
public XTestServiceController( public XTestServiceController(
@@ -1,5 +1,6 @@
using System; using System;
using System.Linq; using System.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.EntityFrameworkCore.Query; using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using xCommons.Configurations; using xCommons.Configurations;
@@ -14,6 +15,7 @@ using xServices.Providers;
namespace xServices.Controllers namespace xServices.Controllers
{ {
[AllowAnonymous]
public class XTestServiceProviderController : XBaseServiceProviderController<XTest, XTestDto, Guid, XTestDtoHub>, IXBaseServiceProviderController<XTest, XTestDto, Guid, XTestDtoHub> public class XTestServiceProviderController : XBaseServiceProviderController<XTest, XTestDto, Guid, XTestDtoHub>, IXBaseServiceProviderController<XTest, XTestDto, Guid, XTestDtoHub>
{ {
public XTestServiceProviderController( public XTestServiceProviderController(
@@ -22,8 +24,8 @@ namespace xServices.Controllers
IXIdentityProvider identityProvider, IXIdentityProvider identityProvider,
XValidationProvider validationProvider, XValidationProvider validationProvider,
IXTestServiceProvider provider, IXTestServiceProvider provider,
Func<IQueryable<XTest>, IOrderedQueryable<XTest>> defaultOrderBuilder, Func<IQueryable<XTest>, IOrderedQueryable<XTest>> defaultOrderBuilder = null,
Func<IQueryable<XTest>, IIncludableQueryable<XTest, object>> defaultIncludeBuilder Func<IQueryable<XTest>, IIncludableQueryable<XTest, object>> defaultIncludeBuilder = null
) : base( ) : base(
logger, logger,
appConfiguration, appConfiguration,
+4 -4
View File
@@ -216,10 +216,10 @@ namespace xServices.DI
// //
#region Register Identity Service ... #region Register Identity Service ...
// services.AddXIdentityService( services.AddXIdentityService(
// configuration: configuration, configuration: configuration,
// lifeTime: ServiceLifetime.Scoped lifeTime: ServiceLifetime.Scoped
// ); );
#endregion #endregion
// //
+1 -1
View File
@@ -3,6 +3,6 @@
<packageSources> <packageSources>
<!-- <add key="megan" value="https://hub.megan.ir/nuget/index.json" /> --> <!-- <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="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> </packageSources>
</configuration> </configuration>