public CryptoConnectionListener(ISerializer <TMessage> serializer, IThreadManager threadManager, ILinkNegotiator linkNegotiator, ITimerService timerService) { this.timerService = Guard.IsNull(() => timerService); this.serializer = Guard.IsNull(() => serializer); this.threadManager = Guard.IsNull(() => threadManager); this.linkNegotiator = Guard.IsNull(() => linkNegotiator); }
public CryptoConnectionStub(ISerializer <TMessage> serializer, Socket socket, ILinkNegotiator linkNegotiator, ITimerService timerService, int pollingInterval = 1000) { this.pollingInterval = pollingInterval; this.timerService = Guard.IsNull(() => timerService); this.socket = Guard.IsNull(() => socket); this.linkNegotiator = Guard.IsNull(() => linkNegotiator); this.serializer = Guard.IsNull(() => serializer); baseStream = new NetworkStream(socket); connectionTimer = this.timerService.StartNew(OnCheckConnectionStatus, pollingInterval, Timeout.Infinite); }
public CryptoConnectionStubBuilder(ISerializer <TMessage> serializer, ILinkNegotiator negotiator, ITimerService timerService) { this.timerService = Guard.IsNull(() => timerService); this.negotiator = Guard.IsNull(() => negotiator); this.serializer = Guard.IsNull(() => serializer); }
public CryptoConnectionStubListener(ISerializer <TMessage> serializer, ILinkNegotiator linkNegotiator, ITimerService timerService) : base(serializer, timerService) { this.linkNegotiator = Guard.IsNull(() => linkNegotiator); }