Ejemplo n.º 1
0
 public static TCP.Address Address2Proto(Address addr)
 {
     return(TCP.Address.CreateBuilder()
            .SetProtocol(addr.Protocol)
            .SetSystem(addr.System)
            .SetHost(addr.Host)
            .SetPort(addr.Port.Value) //yep, it's FINE if this throws a null reference error - means that the test configuration is borked anyway
            .Build());
 }
Ejemplo n.º 2
0
 public static TCP.Address Address2Proto(Address addr)
 {
     return TCP.Address.CreateBuilder()
         .SetProtocol(addr.Protocol)
         .SetSystem(addr.System)
         .SetHost(addr.Host)
         .SetPort(addr.Port.Value) //yep, it's FINE if this throws a null reference error - means that the test configuration is borked anyway
         .Build();
 }
Ejemplo n.º 3
0
        MemberStatus?MemberStatus(Address address)
        {
            var member = ClusterView.Members.FirstOrDefault(m => m.Address == address);

            if (member == null)
            {
                return(null);
            }
            return(member.Status);
        }
Ejemplo n.º 4
0
 public AddressReply(RoleName node, Address addr)
 {
     _node = node;
     _addr = addr;
 }
Ejemplo n.º 5
0
 public DisconnectMsg(Address target, bool abort)
 {
     _target = target;
     _abort  = abort;
 }
Ejemplo n.º 6
0
 public ThrottleMsg(Address target, ThrottleTransportAdapter.Direction direction, float rateMBit)
 {
     _target    = target;
     _direction = direction;
     _rateMBit  = rateMBit;
 }
Ejemplo n.º 7
0
 public Hello(string name, Address address)
 {
     _name    = name;
     _address = address;
 }
Ejemplo n.º 8
0
 MemberStatus? MemberStatus(Address address)
 {
     var member = ClusterView.Members.FirstOrDefault(m => m.Address == address);
     if (member == null) return null;
     return member.Status;
 }