public ActorTransportConnector(IPEndPoint connectToEndPoint, ActorTransportConfiguration transportConfiguration) { if (connectToEndPoint == null) { throw new ArgumentNullException("connectToEndPoint"); } if (transportConfiguration == null) { throw new ArgumentNullException("transportConfiguration"); } this.ConnectToEndPoint = connectToEndPoint; this.TransportConfiguration = transportConfiguration; }
= new ConcurrentDictionary <string, ActorTransportSession>(); // SessionKey -> Session public ActorTransportListener(IPEndPoint listenedEndPoint, ActorTransportConfiguration transportConfiguration) { if (listenedEndPoint == null) { throw new ArgumentNullException("listenedEndPoint"); } if (transportConfiguration == null) { throw new ArgumentNullException("transportConfiguration"); } this.ListenedEndPoint = listenedEndPoint; this.TransportConfiguration = transportConfiguration; }
public ActorTransportReconnectableConnector(IPEndPoint connectToEndPoint, ActorTransportConfiguration transportConfiguration) : base(connectToEndPoint, transportConfiguration) { this.RetryPeriod = TimeSpan.FromSeconds(15); }