protected override void AddPlugins(ItemModel source, Endpoint endpoint)
        {
            var settings = new XMLFileSettings();

            settings.Path = base.GetStringValue(source, XMLFileEndpointItemModel.Path);
            //
            endpoint.Plugins.Add(settings);
        }
Ejemplo n.º 2
0
        public XMLAdapter(XMLFileSettings xmlFileSettings = null, XMLSettings xmlSettings = null)
        {
            if (xmlFileSettings == null)
            {
                BH.Engine.Reflection.Compute.RecordError("Please set the File Settings correctly to enable the XML Adapter to work correctly");
                return;
            }

            _fileSettings = xmlFileSettings;
            _xmlSettings  = xmlSettings;

            AdapterId = "XML_Adapter";
            Config.MergeWithComparer  = false;  //Set to true after comparers have been implemented
            Config.ProcessInMemory    = false;
            Config.SeparateProperties = false;  //Set to true after Dependency types have been implemented
            Config.UseAdapterId       = false;  //Set to true when NextId method and id tagging has been implemented
        }
Ejemplo n.º 3
0
        /***************************************************/
        /**** Public Methods                            ****/
        /***************************************************/

        public static string FullFileName(this XMLFileSettings fileSettings)
        {
            return(System.IO.Path.Combine(fileSettings.Directory, fileSettings.FileName + ".xml"));
        }