public static Iconfigprovider Generate() { /* 1. read the licence file * [dlatikay 20130322] MEA-2013-00108 read the licence file */ var explicit_path = configprovider.DiscoverConfigFileLocation(); var licencefilepath = Path.Combine(Path.GetDirectoryName(explicit_path), configprovider.LicenceFilename); var licence = new LicenceDescriptor(); licence.LicenceFileRead(licencefilepath); /* 2. decide which class to factor */ string current_config_name; if (licence.ConfigProviderClassname.Length > 0) { /* try and factor the class as specified */ current_config_name = licence.ConfigProviderClassname; } else { /* factor the default class of the build configuration */ #if ACCURATUS current_config_name = typeof(configprovider_accuratus).Name; #elif ISIS current_config_name = typeof(configprovider_isis).Name; #else current_config_name = typeof(configprovider_domestic).Name; #endif } #if DEBUG var debug_config_file = Path.Combine(GetRootPath(), "debug_config.dat"); if (File.Exists(debug_config_file)) current_config_name = File.ReadAllText(debug_config_file); #endif /* [dlatikay 20130322] MEA-2013-00108 * [dlatikay 20161016] no longer uses obsolete overload with sandbox/evidence */ return (Iconfigprovider)Activator.CreateInstance( System.Reflection.Assembly.GetExecutingAssembly().GetName().Name, String.Format("sherm.core.config.{0}", current_config_name), false, System.Reflection.BindingFlags.CreateInstance, null, new object[] { licence }, null, new object[] { /* activationattributes */ } ).Unwrap(); }
public configprovider_db(LicenceDescriptor _licence) : base(_licence) { }
public configprovider_asfinag(LicenceDescriptor _licence) : base(_licence) { }
public configprovider_accuratus(LicenceDescriptor _licence) : base(_licence) { }
public configprovider_tkbilstein(LicenceDescriptor _licence) : base(_licence) { }
public configprovider_porsche(LicenceDescriptor _licence) : base(_licence) { }
public configprovider_hitachi(LicenceDescriptor _licence) : base(_licence) { }
public configprovider_flowserve(LicenceDescriptor _licence) : base(_licence) { }
public configprovider_allianz(LicenceDescriptor _licence) : base(_licence) { }
public configprovider_roche_s(LicenceDescriptor _licence) : base(_licence) { }
public configprovider_mondi_bg(LicenceDescriptor _licence) : base(_licence) { }