示例#1
0
 public Plugin(InternalJsonSerializer internalJsonSerializer)
 {
     // ToDo _workRecordImporter = new WorkRecordImporter(_internalJsonSerializer);
     _JsonExporter    = new JsonExporter(internalJsonSerializer);
     CustomProperties = new PluginProperties();
     _infoFileReader  = new InfoFileReader(AssemblyVersion);
 }
示例#2
0
 public InfoFile(string name, string version, string adaptVersion, string description, PluginProperties exportProperties, DateTime dateOfConversion)
 {
     NamePlugin           = name;
     VersionPlugin        = version;
     AdaptVersion         = adaptVersion;
     DescriptionOfCatalog = description;
     ExportProperties     = exportProperties;
     DateOfConversion     = dateOfConversion;
 }
        public bool WriteInfoFile(string path, string name, string version, string description, PluginProperties exportProperties)
        {
            var adaptVersion = "2.0.4";

            return(WriteJson(path, new InfoFile(name, version, adaptVersion, description, exportProperties, DateTime.Now), InfoFileConstants.InfoFileName));
        }