public ServiceConnection( string connectionId, IServiceProtocol serviceProtocol, IConnectionFactory connectionFactory, IClientConnectionManager clientConnectionManager, ILoggerFactory loggerFactory, SignalR.IServiceConnectionManager manager, ServerConnectionType connectionType = ServerConnectionType.Default) : base(serviceProtocol, loggerFactory, connectionId, manager, connectionType) { _connectionFactory = connectionFactory; _clientConnectionManager = clientConnectionManager; _logger = loggerFactory?.CreateLogger <ServiceConnection>() ?? NullLogger <ServiceConnection> .Instance; }
public IServiceConnection Create(IConnectionFactory connectionFactory, SignalR.IServiceConnectionManager manager, ServerConnectionType type) { return(new ServiceConnection(Guid.NewGuid().ToString(), _serviceProtocol, connectionFactory, _clientConnectionManager, _logger, manager, type)); }
public ServiceConnectionProxy(IClientConnectionManager clientConnectionManager, ILoggerFactory loggerFactory, ConnectionDelegate callback = null, PipeOptions clientPipeOptions = null, SignalR.IServiceConnectionManager serviceConnectionManager = null) : base( Guid.NewGuid().ToString("N"), SharedServiceProtocol, new TestConnectionFactory(), clientConnectionManager, loggerFactory, serviceConnectionManager) { }