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