/// <summary>
 /// Constructor
 /// </summary>
 public NetServerTemplate()
 {
     LocalPort     = 12345;
     UdpEnable     = false;
     Layers        = new List <INetworkLayerFactory>();
     ServerFactory = new DataEndpointFactory <T, C>();
 }
Exemplo n.º 2
0
        private void UpdateFactory(DataEndpointFactory factory)
        {
            _factory = factory;

            textBoxLibraryServer.Text   = factory.Name;
            propertyGrid.SelectedObject = factory.Config;
        }
Exemplo n.º 3
0
        protected override bool SelectTemplate(object template)
        {
            NodeLibraryManager.NodeLibraryType node = (NodeLibraryManager.NodeLibraryType)template;

            if (node.ConfigType != null)
            {
                Server = new LibraryDataEndpointFactory(node.Type, node.ConfigType, node.Name);
            }
            else
            {
                Server = new LibraryDataEndpointFactory(node.Type, node.Name);
            }

            return(true);
        }
Exemplo n.º 4
0
 public NetServerProxyClient(DataEndpointFactory factory)
 {
     _factory = factory;
 }
Exemplo n.º 5
0
        protected override bool SelectScript(ScriptDocument document, string className)
        {
            Server = new ScriptDataEndpointFactory(document, className);

            return(true);
        }