예제 #1
0
 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));
 }
예제 #3
0
 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)
 {
 }