diff --git a/DI/XDIHelperExtension.cs b/DI/XDIHelperExtension.cs index 160ac05..c19f9ad 100644 --- a/DI/XDIHelperExtension.cs +++ b/DI/XDIHelperExtension.cs @@ -89,16 +89,6 @@ namespace xWebinarService.DI { throw exception; } - // - // Check WEBRTC Hub Exists ... - var isWebRTCHubExists = !services.GetRegisteredService().IsNull(); - if (!isWebRTCHubExists) - { - // - Log("AddWebinarService failed, XWebinarHub not provided ..."); - throw exception; - } - // // Register Resource Providers ... services.Add(new ServiceDescriptor(typeof(IXWebinarTitleResourceProvider), typeof(XWebinarTitleResourceProvider), lifeTime)); diff --git a/Interfaces/IXWebinarHub.cs b/Hub/XWebinarHub.cs similarity index 53% rename from Interfaces/IXWebinarHub.cs rename to Hub/XWebinarHub.cs index f62a379..4b873ac 100644 --- a/Interfaces/IXWebinarHub.cs +++ b/Hub/XWebinarHub.cs @@ -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; + } } } \ No newline at end of file