コード例 #1
0
        private WebSocketTransmissionServer(WebSocketTransmissionServerOptions options, string protocol)
        {
            _options  = options;
            _protocol = protocol;
            var serverName = $"{protocol}-v1";

            _stateWriter = new ServerStateWriter(serverName, _options.WorkingDir);
            _buffer.Out.PropagateCompletionFrom(Completion);
        }
コード例 #2
0
 public PipeTransmissionServer(string brokerWorkingDir)
 {
     _log            = LogManager.GetLogger <PipeTransmissionServer>();
     _settingsWriter = new ServerStateWriter(ServerName, brokerWorkingDir);
     _buffer.Out.PropagateCompletionFrom(Completion);
 }
コード例 #3
0
 public WebSocketTransmissionServer(WebSocketTransmissionServerOptions options)
 {
     _options     = options;
     _stateWriter = new ServerStateWriter(ServerName, _options.WorkingDir);
     _buffer.Out.PropagateCompletionFrom(Completion);
 }
コード例 #4
0
 public PipeTransmissionServer(string brokerWorkingDir = null)
 {
     _log             = LogManager.GetLogger <PipeTransmissionServer>();
     brokerWorkingDir = brokerWorkingDir ?? Directory.GetCurrentDirectory();
     _settingsWriter  = new ServerStateWriter(ServerName, brokerWorkingDir);
 }
コード例 #5
0
 public WebSocketTransmissionServer(string workingDir = null)
 {
     _stateWriter = new ServerStateWriter(ServerName, workingDir ?? Directory.GetCurrentDirectory());
 }
コード例 #6
0
 public WebSocketTransmissionServer(string workingDir, IReadOnlyDictionary <string, string> staticFileMappings = null)
 {
     _staticFileMappings = staticFileMappings ?? new Dictionary <string, string>();
     _stateWriter        = new ServerStateWriter(ServerName, workingDir);
     _buffer.Out.PropagateCompletionFrom(Completion);
 }
コード例 #7
0
 public WebSocketTransmissionServer(string workingDir)
 {
     _stateWriter = new ServerStateWriter(ServerName, workingDir);
     _buffer.Out.PropagateCompletionFrom(Completion);
 }