Exemplo n.º 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));
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public ActorOptions UsingRemoteEndPoint(IPEndPoint endPoint)
 {
     _endPoint = (endPoint == null) ? null :
                 new RemoteEndPoint(endPoint.Address.ToString(), endPoint.Port);
     return(this);
 }
Exemplo n.º 4
0
 public ActorOptions UsingRemoteEndPoint(RemoteEndPoint endPoint)
 {
     _endPoint = endPoint;
     return(this);
 }
Exemplo n.º 5
0
 public ActorOptions UsingRemoteEndPoint(string host, int port)
 {
     _endPoint = new RemoteEndPoint(host, port);
     return(this);
 }
Exemplo n.º 6
0
 internal RemoteAddress(RemoteEndPoint endPoint, Aid actorId)
 {
     _endPoint = endPoint ?? throw new ArgumentNullException(nameof(endPoint));
     _actor    = actorId ?? throw new ArgumentNullException(nameof(actorId));
 }
Exemplo n.º 7
0
 internal RemoteAddress(RemoteEndPoint endPoint, string actorSystem, string actor)
 {
     _endPoint = endPoint ?? throw new ArgumentNullException(nameof(endPoint));
     _actor    = new Aid(actorSystem, actor);
 }