adding Data Requirement on XContent Service ...
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xContentService.Interfaces.Dtos;
|
||||
using xContentService.Models.Dtos;
|
||||
using xContentService.Models.Entities;
|
||||
using xPushService.Base;
|
||||
|
||||
namespace xContentService.Providers.Dtos
|
||||
{
|
||||
public class XContentDtoHub : XBaseDtoHub<XContent, XContentDto, Guid>, IXContentDtoHub
|
||||
{
|
||||
public XContentDtoHub(
|
||||
ILogger<XContentDtoHub> logger
|
||||
) : base(logger)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using AutoMapper;
|
||||
using xContentService.Interfaces.Dtos;
|
||||
using xContentService.Interfaces.Entities;
|
||||
using xContentService.Models.Dtos;
|
||||
using xContentService.Models.Entities;
|
||||
using xDataService.Providers;
|
||||
|
||||
namespace xContentService.Providers.Dtos
|
||||
{
|
||||
public class XContentRepositoryService : XBaseRepositoryService<XContent, XContentDto, Guid>, IXContentRepositoryService
|
||||
{
|
||||
public XContentRepositoryService(
|
||||
IXContentRepository repository,
|
||||
IEnumerable<Profile> mapperProfiles = null
|
||||
) : base(
|
||||
repository,
|
||||
mapperProfiles
|
||||
)
|
||||
{ }
|
||||
|
||||
//
|
||||
// TODO: Implement Enrichers ...
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
using xContentService.Interfaces.Dtos;
|
||||
using xContentService.Models.Dtos;
|
||||
using xContentService.Models.Entities;
|
||||
using xDataService.Configuration;
|
||||
using xIdentityService.Interfaces;
|
||||
using xPushService.Base;
|
||||
|
||||
namespace xContentService.Providers.Dtos
|
||||
{
|
||||
public class XContentServiceProvider : XBaseDtoProvider<XContent, XContentDto, Guid, XContentDtoHub>, IXContentServiceProvider
|
||||
{
|
||||
public XContentServiceProvider(
|
||||
IHubContext<XContentDtoHub> hub,
|
||||
XDataServiceConfiguration dataConfiguration,
|
||||
IXContentRepositoryService service,
|
||||
IXIdentityProvider identityProvider = null
|
||||
) : base(
|
||||
hub,
|
||||
dataConfiguration,
|
||||
service,
|
||||
identityProvider
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user