Preparing xPushService ...

This commit is contained in:
2026-05-16 01:14:19 +03:30
parent f929414b9f
commit af84871d10
11 changed files with 1625 additions and 33 deletions
+6 -5
View File
@@ -17,25 +17,26 @@ using xPushService.Interfaces;
namespace xPushService.Base
{
public abstract class XBaseDtoProvider<TEntity, TDto, TKey> : IXBaseDtoProvider<TEntity, TDto, TKey>
public abstract class XBaseDtoProvider<TEntity, TDto, TKey, THub> : IXBaseDtoProvider<TEntity, TDto, TKey, THub>
where TEntity : XBaseEntity<TKey>
where TDto : XBaseEntityDto<TKey>
where THub : XBaseDtoHub<TEntity, TDto, TKey>
{
//
#region Properties ...
public IHubContext<THub> Hub { get; }
public IXIdentityProvider IdentityProvider { get; }
public XDataServiceConfiguration DataConfiguration { get; }
public IHubContext<XBaseDtoHub<TEntity, TDto, TKey>> Hub { get; }
public IXBaseRepositoryService<TEntity, TDto, TKey> Service { get; }
#endregion
//
#region Constructor ...
protected XBaseDtoProvider(
IXIdentityProvider identityProvider,
IHubContext<THub> hub,
XDataServiceConfiguration dataConfiguration,
IHubContext<XBaseDtoHub<TEntity, TDto, TKey>> hub,
IXBaseRepositoryService<TEntity, TDto, TKey> service
IXBaseRepositoryService<TEntity, TDto, TKey> service,
IXIdentityProvider identityProvider = null
)
{
//
+9 -8
View File
@@ -17,24 +17,25 @@ using xPushService.Interfaces;
namespace xPushService.Base
{
public abstract class XBaseEntityProvider<TEntity, TKey> : IXBaseEntityProviderr<TEntity, TKey>
public abstract class XBaseEntityProvider<TEntity, TKey, THub> : IXBaseEntityProviderr<TEntity, TKey, THub>
where TEntity : XBaseEntity<TKey>
where THub : XBaseEntityHub<TEntity, TKey>
{
//
#region Properties ...
public IHubContext<THub> Hub { get; }
public IXIdentityProvider IdentityProvider { get; }
public IXBaseRepository<TEntity, TKey> Repository { get; }
public XDataServiceConfiguration DataConfiguration { get; }
public IHubContext<XBaseEntityHub<TEntity, TKey>> Hub { get; }
#endregion
//
#region Constructor ...
protected XBaseEntityProvider(
IXIdentityProvider identityProvider,
IHubContext<THub> hub,
IXBaseRepository<TEntity, TKey> repository,
XDataServiceConfiguration dataConfiguration,
IHubContext<XBaseEntityHub<TEntity, TKey>> hub
IXIdentityProvider identityProvider = null
)
{
//
@@ -411,11 +412,11 @@ namespace xPushService.Base
//
await clients.SendAsync(
action,
payLoad,
connectionId,
action,
payLoad,
connectionId,
cancellationToken
);
);
}
#endregion
}