Preparing xPushService ...
This commit is contained in:
@@ -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
|
||||
)
|
||||
{
|
||||
//
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user