This commit is contained in:
2025-11-05 06:37:09 +03:30
parent 0b0083a479
commit e24ec4c283
2 changed files with 13 additions and 12 deletions
-10
View File
@@ -89,16 +89,6 @@ namespace xWebinarService.DI {
throw exception;
}
//
// Check WEBRTC Hub Exists ...
var isWebRTCHubExists = !services.GetRegisteredService<XWebinarHub>().IsNull();
if (!isWebRTCHubExists)
{
//
Log("AddWebinarService failed, XWebinarHub not provided ...");
throw exception;
}
//
// Register Resource Providers ...
services.Add(new ServiceDescriptor(typeof(IXWebinarTitleResourceProvider), typeof(XWebinarTitleResourceProvider), lifeTime));
@@ -1,9 +1,10 @@
using xPushService.Base;
using xPushService.Interfaces;
using xPushService.Models;
namespace xWebinarService.Interfaces
namespace xWebinarService.Hub
{
public abstract class XWebinarHub : XBaseWebRTCHub
public class XWebinarHub : XBaseWebRTCHub
{
protected XWebinarHub(
IXPushGroupStore groupStore,
@@ -15,5 +16,15 @@ namespace xWebinarService.Interfaces
webRTCConnectionStore
)
{ }
public override XPushConnectionDto GetConnection()
{
//
var result = GetBaseConnection();
result.Type = GetType().Name;
//
return result;
}
}
}