public ServiceHubContextImpl(string hubName, IHubContext <Hub> hubContext, IServiceHubLifetimeManager lifetimeManager, IServiceProvider serviceProvider, NegotiateProcessor negotiateProcessor, IServiceEndpointManager endpointManager)
 {
     _hubName            = hubName;
     _hubContext         = hubContext;
     _lifetimeManager    = lifetimeManager;
     UserGroups          = new UserGroupsManager(lifetimeManager);
     ServiceProvider     = serviceProvider;
     _negotiateProcessor = negotiateProcessor;
     _endpointManager    = endpointManager;
 }
Ejemplo n.º 2
0
 public ServiceContext(ServiceHubContextFactory serviceHubContextFactory, NegotiateProcessor negotiateProcessor, IServiceProvider serviceProvider)
 {
     _serviceHubContextFactory = serviceHubContextFactory;
     _negotiateProcessor       = negotiateProcessor;
     _serviceProvider          = serviceProvider;
 }