示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#4
0
文件: EndPoint.cs 项目: itadapter/nfx
        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);
        }
示例#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);
        }
示例#6
0
 public TelemetryReceiverClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }
示例#7
0
 public TelemetryReceiverClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
示例#8
0
 public ClientEndPoint(Node node, Binding binding = null) : base(App.Glue, node, binding) { ctor(); }
示例#9
0
 public ClientEndPoint(IGlue glue, Node node, Binding binding = null) : base(glue, node, binding) { ctor(); }
示例#10
0
 public MessageServiceClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }
示例#11
0
文件: NOPGlue.cs 项目: vlapchenko/nfx
 public Binding GetNodeBinding(Node node)
 {
     return null;
 }
 public RegistrationServiceClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }
示例#13
0
 public LoginServiceClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
示例#14
0
 public JokeCalculatorClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }
示例#15
0
 public JokeContractClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
示例#16
0
 public JokeContractClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }
示例#17
0
 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();
 }
示例#19
0
 public JokeCalculatorClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
示例#20
0
 public LoginServiceClient(Node node, Binding binding = null)
     : base(node, binding)
 {
     ctor();
 }