public void Node2() { var n = new Node("http://server=127.0.0.1;interface=eth0:hgov"); Assert.AreEqual("server=127.0.0.1;interface=eth0", n.Host); Assert.AreEqual("http", n.Binding); Assert.AreEqual("hgov", n.Service); }
public void Node5() { var n = new Node("server"); Assert.AreEqual("server", n.Host); Assert.AreEqual(string.Empty, n.Binding); Assert.AreEqual(string.Empty, n.Service); }
public void Node1() { var n = new Node("http://server:9045"); Assert.AreEqual("server", n.Host); Assert.AreEqual("http", n.Binding); Assert.AreEqual("9045", n.Service); }
protected EndPoint(IGlue glue, Node node, Binding binding) { if (glue == null) glue = ExecutionContext.Application.Glue; m_Glue = (IGlueImplementation)glue; m_Node = node; m_Binding = binding ?? m_Glue.GetNodeBinding(node); }
internal ServerNode(MongoClient client, Node node) : base(client) { m_Client = client; m_Node = node; var cfg = client.ConfigRoot//1. Try to find the SERVER section with name equals this node .Children .FirstOrDefault(c => c.IsSameName(CONFIG_SERVER_SECTION) && c.IsSameNameAttr(node.ConnectString)); if (cfg==null) cfg = client.ConfigRoot //2. If not found, try to find SERVER section without name attr .Children .FirstOrDefault(c => c.IsSameName(CONFIG_SERVER_SECTION) && !c.AttrByName(Configuration.CONFIG_NAME_ATTR).Exists); if (cfg!=null) ConfigAttribute.Apply(this, client.ConfigRoot); }
public TelemetryReceiverClient(Node node, Binding binding = null) : base(node, binding) { ctor(); }
public TelemetryReceiverClient(IGlue glue, Node node, Binding binding = null) : base(glue, node, binding) { ctor(); }
public ClientEndPoint(Node node, Binding binding = null) : base(App.Glue, node, binding) { ctor(); }
public ClientEndPoint(IGlue glue, Node node, Binding binding = null) : base(glue, node, binding) { ctor(); }
public MessageServiceClient(Node node, Binding binding = null) : base(node, binding) { ctor(); }
public Binding GetNodeBinding(Node node) { return null; }
public RegistrationServiceClient(Node node, Binding binding = null) : base(node, binding) { ctor(); }
public LoginServiceClient(IGlue glue, Node node, Binding binding = null) : base(glue, node, binding) { ctor(); }
public JokeCalculatorClient(Node node, Binding binding = null) : base(node, binding) { ctor(); }
public JokeContractClient(IGlue glue, Node node, Binding binding = null) : base(glue, node, binding) { ctor(); }
public JokeContractClient(Node node, Binding binding = null) : base(node, binding) { ctor(); }
public TestContractAClient(Node node, Binding binding = null) : base(node, binding) { ctor(); }
public RegistrationServiceClient(IGlue glue, Node node, Binding binding = null) : base(glue, node, binding) { ctor(); }
public JokeCalculatorClient(IGlue glue, Node node, Binding binding = null) : base(glue, node, binding) { ctor(); }
public LoginServiceClient(Node node, Binding binding = null) : base(node, binding) { ctor(); }