add requirements in Content Service ...
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using xCommons.Providers;
|
||||
using xCommons.Configurations;
|
||||
using xDataService.Interfaces;
|
||||
using xDataService.Controllers;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xContentService.Models.Entities;
|
||||
using Microsoft.EntityFrameworkCore.Query;
|
||||
using xContentService.Interfaces.Entities;
|
||||
|
||||
namespace xContentService.Controllers
|
||||
{
|
||||
public abstract class XContentRepositoryControllerBase : XBaseRepositoryController<XContent, Guid>, IXBaseRepositoryController<XContent, Guid>
|
||||
{
|
||||
protected XContentRepositoryControllerBase(
|
||||
ILogger<XContentRepositoryControllerBase> logger,
|
||||
XAppConfiguration appConfiguration,
|
||||
XValidationProvider validationProvider,
|
||||
IXContentRepository repository,
|
||||
Func<IQueryable<XContent>, IOrderedQueryable<XContent>> defaultOrderBuilder = null,
|
||||
Func<IQueryable<XContent>, IIncludableQueryable<XContent, object>> defaultIncludeBuilder = null
|
||||
) : base(
|
||||
logger,
|
||||
appConfiguration,
|
||||
validationProvider,
|
||||
repository,
|
||||
defaultOrderBuilder,
|
||||
defaultIncludeBuilder
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using xCommons.Providers;
|
||||
using xPushService.Interfaces;
|
||||
using xCommons.Configurations;
|
||||
using xPushService.Controllers;
|
||||
using xIdentityService.Interfaces;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xContentService.Models.Entities;
|
||||
using xContentService.Providers.Entities;
|
||||
using Microsoft.EntityFrameworkCore.Query;
|
||||
using xContentService.Interfaces.Entities;
|
||||
|
||||
namespace xContentService.Controllers
|
||||
{
|
||||
public abstract class XContentRepositoryProviderControllerBase : XBaseRepositoryProviderController<XContent, Guid, XContentEntityHub>, IXBaseRepositoryProviderController<XContent, Guid, XContentEntityHub>
|
||||
{
|
||||
protected XContentRepositoryProviderControllerBase(
|
||||
ILogger<XContentRepositoryProviderControllerBase> logger,
|
||||
XAppConfiguration appConfiguration,
|
||||
IXIdentityProvider identityProvider,
|
||||
XValidationProvider validationProvider,
|
||||
IXContentRepositoryProvider provider,
|
||||
Func<IQueryable<XContent>, IOrderedQueryable<XContent>> defaultOrderBuilder = null, Func<IQueryable<XContent>, IIncludableQueryable<XContent, object>> defaultIncludeBuilder = null
|
||||
) : base(
|
||||
logger,
|
||||
appConfiguration,
|
||||
identityProvider,
|
||||
validationProvider,
|
||||
provider,
|
||||
defaultOrderBuilder,
|
||||
defaultIncludeBuilder
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using xCommons.Providers;
|
||||
using xCommons.Configurations;
|
||||
using xDataService.Interfaces;
|
||||
using xDataService.Controllers;
|
||||
using xContentService.Models.Dtos;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xContentService.Models.Entities;
|
||||
using xContentService.Interfaces.Dtos;
|
||||
using Microsoft.EntityFrameworkCore.Query;
|
||||
|
||||
namespace xContentService.Controllers
|
||||
{
|
||||
public abstract class XContentServiceControllerBase : XBaseServiceController<XContent, XContentDto, Guid>, IXBaseServiceController<XContent, XContentDto, Guid>
|
||||
{
|
||||
protected XContentServiceControllerBase(
|
||||
ILogger<XContentServiceControllerBase> logger,
|
||||
XAppConfiguration appConfiguration,
|
||||
XValidationProvider validationProvider,
|
||||
IXContentRepositoryService repositoryService,
|
||||
Func<IQueryable<XContent>, IOrderedQueryable<XContent>> defaultOrderBuilder = null,
|
||||
Func<IQueryable<XContent>, IIncludableQueryable<XContent, object>> defaultIncludeBuilder = null
|
||||
) : base(
|
||||
logger,
|
||||
appConfiguration,
|
||||
validationProvider,
|
||||
repositoryService,
|
||||
defaultOrderBuilder,
|
||||
defaultIncludeBuilder
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using xCommons.Providers;
|
||||
using xCommons.Configurations;
|
||||
using xPushService.Interfaces;
|
||||
using xPushService.Controllers;
|
||||
using xContentService.Models.Dtos;
|
||||
using xIdentityService.Interfaces;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xContentService.Providers.Dtos;
|
||||
using xContentService.Models.Entities;
|
||||
using xContentService.Interfaces.Dtos;
|
||||
using Microsoft.EntityFrameworkCore.Query;
|
||||
|
||||
namespace xContentService.Controllers
|
||||
{
|
||||
public abstract class XContentServiceProviderControllerBase : XBaseServiceProviderController<XContent, XContentDto, Guid, XContentDtoHub>, IXBaseServiceProviderController<XContent, XContentDto, Guid, XContentDtoHub>
|
||||
{
|
||||
protected XContentServiceProviderControllerBase(
|
||||
ILogger<XContentServiceProviderControllerBase> logger,
|
||||
XAppConfiguration appConfiguration,
|
||||
IXIdentityProvider identityProvider,
|
||||
XValidationProvider validationProvider,
|
||||
IXContentServiceProvider provider,
|
||||
Func<IQueryable<XContent>, IOrderedQueryable<XContent>> defaultOrderBuilder = null,
|
||||
Func<IQueryable<XContent>, IIncludableQueryable<XContent, object>> defaultIncludeBuilder = null
|
||||
) : base(
|
||||
logger,
|
||||
appConfiguration,
|
||||
identityProvider,
|
||||
validationProvider,
|
||||
provider,
|
||||
defaultOrderBuilder,
|
||||
defaultIncludeBuilder
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using xCommons.Providers;
|
||||
using xTagService.Interfaces;
|
||||
using xCommons.Configurations;
|
||||
using xPushService.Interfaces;
|
||||
using xTagService.Controllers;
|
||||
using xContentService.Models.Dtos;
|
||||
using xIdentityService.Interfaces;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xContentService.Providers.Dtos;
|
||||
using xContentService.Models.Entities;
|
||||
using Microsoft.EntityFrameworkCore.Query;
|
||||
using xContentService.Interfaces.Controllers;
|
||||
|
||||
namespace xContentService.Controllers
|
||||
{
|
||||
public abstract class XControllerProviderControllerBase : XBaseProvidedHasTagControllerBase<XContent, XContentDto, Guid, XContentDtoHub>, IXContentProviderController
|
||||
{
|
||||
protected XControllerProviderControllerBase(
|
||||
ILogger<XBaseProvidedHasTagControllerBase<XContent, XContentDto, Guid, XContentDtoHub>> logger,
|
||||
XAppConfiguration appConfiguration,
|
||||
IXIdentityProvider identityProvider,
|
||||
XValidationProvider validationProvider,
|
||||
IXBaseProvided<XContent, XContentDto, Guid, XContentDtoHub> provider,
|
||||
IXTagProvided<XContent, XContentDto, Guid, XContentDtoHub> tagProvided,
|
||||
Func<IQueryable<XContent>, IOrderedQueryable<XContent>> defaultOrderBuilder = null,
|
||||
Func<IQueryable<XContent>, IIncludableQueryable<XContent, object>> defaultIncludeBuilder = null
|
||||
) : base(
|
||||
logger,
|
||||
appConfiguration,
|
||||
identityProvider,
|
||||
validationProvider,
|
||||
provider,
|
||||
tagProvided,
|
||||
defaultOrderBuilder,
|
||||
defaultIncludeBuilder
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user