コード例 #1
0
        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;
        }
コード例 #2
0
            = 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;
        }
コード例 #3
0
 public ActorTransportReconnectableConnector(IPEndPoint connectToEndPoint, ActorTransportConfiguration transportConfiguration)
     : base(connectToEndPoint, transportConfiguration)
 {
     this.RetryPeriod = TimeSpan.FromSeconds(15);
 }