2019-01-03 21:00:28 +01:00
|
|
|
|
using Microsoft.AspNet.SignalR;
|
|
|
|
|
|
using Umbraco.Core;
|
2019-02-14 09:15:47 +01:00
|
|
|
|
using Umbraco.Core.Composing;
|
2019-01-03 21:00:28 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.SignalR
|
|
|
|
|
|
{
|
|
|
|
|
|
[RuntimeLevel(MinLevel = RuntimeLevel.Run)]
|
2019-01-05 15:49:10 +01:00
|
|
|
|
public class PreviewHubComposer : ComponentComposer<PreviewHubComponent>, ICoreComposer
|
2019-01-03 21:00:28 +01:00
|
|
|
|
{
|
2019-01-05 15:49:10 +01:00
|
|
|
|
public override void Compose(Composition composition)
|
2019-01-03 21:00:28 +01:00
|
|
|
|
{
|
2019-01-05 15:49:10 +01:00
|
|
|
|
base.Compose(composition);
|
|
|
|
|
|
|
2019-01-03 21:00:28 +01:00
|
|
|
|
composition.RegisterUnique(_ => GlobalHost.ConnectionManager.GetHubContext<PreviewHub, IPreviewHub>());
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|