private IMultiEndpointServiceConnectionContainer GetMultiEndpointServiceConnectionContainer(string hub, ConnectionDelegate connectionDelegate, Action <HttpContext> contextConfig = null) { var connectionFactory = new ConnectionFactory(_nameProvider, _loggerFactory); var serviceConnectionFactory = new ServiceConnectionFactory(_serviceProtocol, _clientConnectionManager, connectionFactory, _loggerFactory, connectionDelegate, _clientConnectionFactory, _nameProvider ) { ConfigureContext = contextConfig }; var factory = new ServiceConnectionContainerFactory( serviceConnectionFactory, _serviceEndpointManager, _router, _options, _loggerFactory ); return(factory.Create(hub)); }
private IMultiEndpointServiceConnectionContainer GetMultiEndpointServiceConnectionContainer(string hub, ConnectionDelegate connectionDelegate, Action <HttpContext> contextConfig = null) { var connectionFactory = new ConnectionFactory(_nameProvider, _loggerFactory); var serviceConnectionFactory = GetServiceConnectionFactory(connectionFactory, connectionDelegate, contextConfig); var factory = new ServiceConnectionContainerFactory( serviceConnectionFactory, _serviceEndpointManager, _router, _options, _loggerFactory, _options.ServiceScaleTimeout ); return(factory.Create(hub)); }