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
+23
View File
@@ -0,0 +1,23 @@
using System;
using Microsoft.AspNetCore.SignalR;
using Microsoft.Extensions.DependencyInjection;
using xPushService.Interfaces;
namespace xPushService.Providers
{
public class XHubContextFactory : IXHubContextFactory
{
private readonly IServiceProvider services;
public XHubContextFactory(IServiceProvider services)
{
this.services = services;
}
public IHubContext<THub> Create<THub>()
where THub : Hub
{
return services.GetRequiredService<IHubContext<THub>>();
}
}
}