Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
 public TelemetryReceiverClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }
Exemplo n.º 7
0
 public TelemetryReceiverClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
Exemplo n.º 8
0
 public ClientEndPoint(Node node, Binding binding = null) : base(App.Glue, node, binding) { ctor(); }
Exemplo n.º 9
0
 public ClientEndPoint(IGlue glue, Node node, Binding binding = null) : base(glue, node, binding) { ctor(); }
Exemplo n.º 10
0
 public MessageServiceClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }
Exemplo n.º 11
0
 public Binding GetNodeBinding(Node node)
 {
     return null;
 }
Exemplo n.º 12
0
 public RegistrationServiceClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }
Exemplo n.º 13
0
 public LoginServiceClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
Exemplo n.º 14
0
 public JokeCalculatorClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }
Exemplo n.º 15
0
 public JokeContractClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
Exemplo n.º 16
0
 public JokeContractClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }
Exemplo n.º 17
0
 public TestContractAClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }
Exemplo n.º 18
0
 public RegistrationServiceClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
Exemplo n.º 19
0
 public JokeCalculatorClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
Exemplo n.º 20
0
 public LoginServiceClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }