last ...
This commit is contained in:
@@ -89,16 +89,6 @@ namespace xWebinarService.DI {
|
|||||||
throw exception;
|
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 ...
|
// Register Resource Providers ...
|
||||||
services.Add(new ServiceDescriptor(typeof(IXWebinarTitleResourceProvider), typeof(XWebinarTitleResourceProvider), lifeTime));
|
services.Add(new ServiceDescriptor(typeof(IXWebinarTitleResourceProvider), typeof(XWebinarTitleResourceProvider), lifeTime));
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
using xPushService.Base;
|
using xPushService.Base;
|
||||||
using xPushService.Interfaces;
|
using xPushService.Interfaces;
|
||||||
|
using xPushService.Models;
|
||||||
|
|
||||||
namespace xWebinarService.Interfaces
|
namespace xWebinarService.Hub
|
||||||
{
|
{
|
||||||
public abstract class XWebinarHub : XBaseWebRTCHub
|
public class XWebinarHub : XBaseWebRTCHub
|
||||||
{
|
{
|
||||||
protected XWebinarHub(
|
protected XWebinarHub(
|
||||||
IXPushGroupStore groupStore,
|
IXPushGroupStore groupStore,
|
||||||
@@ -15,5 +16,15 @@ namespace xWebinarService.Interfaces
|
|||||||
webRTCConnectionStore
|
webRTCConnectionStore
|
||||||
)
|
)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
public override XPushConnectionDto GetConnection()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
var result = GetBaseConnection();
|
||||||
|
result.Type = GetType().Name;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user