예제 #1
0
 protected abstract void Start(TransportSettings transportSettings);
예제 #2
0
 protected override void Start(TransportSettings transportSettings)
 {
     this.listener = transportSettings.CreateListener();
     this.listener.Listen(this.OnAcceptTransport);
 }
예제 #3
0
 public TlsTransportSettings(TransportSettings innerSettings, bool isInitiator)
 {
     this.innerSettings = innerSettings;
     this.IsInitiator = isInitiator;
 }
예제 #4
0
 protected override void Start(TransportSettings transportSettings)
 {
     this.initiator = transportSettings.CreateInitiator();
     TransportAsyncCallbackArgs args = new TransportAsyncCallbackArgs();
     args.CompletedCallback = this.OnEstablishTransport;
     if (!initiator.ConnectAsync(this.TimeoutHelper.RemainingTime(), args))
     {
         this.OnEstablishTransport(args);
     }
 }
예제 #5
0
 public TlsTransportSettings(TransportSettings innerSettings)
     : this(innerSettings, true)
 {
 }