Exemplo n.º 1
0
        private void SubmitUrl()
        {
            var yaml = YamlParser.ParseHelper(YamlLogic.Value);

            _urlYamlContentNonFormatted = GetYamlContentTemplate(yaml);
            _urlDisplay = Block;
        }
Exemplo n.º 2
0
        public void Initialize(string layerYaml)
        {
            var yaml = YamlParser.ParseHelper(layerYaml);

            var deserializer = new DeserializerBuilder().Build();

            LayerConfiguration = deserializer.Deserialize <LayerConfiguration>(yaml);
        }
        public void Initialize(string routerYaml = null)
        {
            if (routerYaml == null)
            {
                try
                {
                    routerYaml = _yamlSourceController.GetYaml(YamlType.Routing);
                }
                catch
                {
                }
            }
            if (routerYaml != null)
            {
                //convert http to yaml
                routerYaml = YamlParser.ParseHelper(routerYaml);

                var deserializer = new DeserializerBuilder().Build();
                routingConfiguration = deserializer.Deserialize <RoutingConfiguration>(routerYaml);
            }
            routingConfigurationSet = true;
        }