Exemple #1
0
        internal RemoteAddress(string host, int port, Aid actorId)
        {
            host = host?.Trim() ?? String.Empty;
            if (host == null)
            {
                throw new ArgumentNullException(nameof(host));
            }

            _endPoint = new RemoteEndPoint(host, port);
            _actor    = actorId ?? throw new ArgumentNullException(nameof(actorId));
        }
Exemple #2
0
        internal RemoteAddress(string host, int port, string actorSystem, string actor)
        {
            host = host?.Trim() ?? String.Empty;
            if (host == null)
            {
                throw new ArgumentNullException(nameof(host));
            }

            _endPoint = new RemoteEndPoint(host, port);
            _actor    = new Aid(actorSystem, actor);
        }
Exemple #3
0
 public ActorOptions UsingRemoteEndPoint(IPEndPoint endPoint)
 {
     _endPoint = (endPoint == null) ? null :
                 new RemoteEndPoint(endPoint.Address.ToString(), endPoint.Port);
     return(this);
 }
Exemple #4
0
 public ActorOptions UsingRemoteEndPoint(RemoteEndPoint endPoint)
 {
     _endPoint = endPoint;
     return(this);
 }
Exemple #5
0
 public ActorOptions UsingRemoteEndPoint(string host, int port)
 {
     _endPoint = new RemoteEndPoint(host, port);
     return(this);
 }
Exemple #6
0
 internal RemoteAddress(RemoteEndPoint endPoint, Aid actorId)
 {
     _endPoint = endPoint ?? throw new ArgumentNullException(nameof(endPoint));
     _actor    = actorId ?? throw new ArgumentNullException(nameof(actorId));
 }
Exemple #7
0
 internal RemoteAddress(RemoteEndPoint endPoint, string actorSystem, string actor)
 {
     _endPoint = endPoint ?? throw new ArgumentNullException(nameof(endPoint));
     _actor    = new Aid(actorSystem, actor);
 }