Пример #1
0
        /// <summary>
        /// This method load all probes available.
        /// </summary>
        public void LoadProbes()
        {
            if (this.probes != null)
            {
                return;
            }

            PluginContainer.RegisterProbeAssembly(Assembly.GetExecutingAssembly());
            PluginContainer.RegisterProbeAssembly(typeof(ProbeBase).Assembly);
            PluginContainer.RegisterProbeAssembly(typeof(Probe.Windows.Registry.RegistryProber).Assembly);
            PluginContainer.RegisterProbeAssembly(typeof(Probe.Unix.Family.FamilyProberUnix).Assembly);
            PluginContainer.RegisterProbeAssembly(typeof(Probe.Solaris.Probes.smf.SMFProber).Assembly);
            PluginContainer.RegisterProbeAssembly(typeof(Probe.Independent.Sql.SqlProber).Assembly);
            PluginContainer.RegisterProbeAssembly(typeof(Probe.CiscoIOS.Probes.Version.VersionProber).Assembly);

            var container = PluginContainer.GetProbeCompositionContainer();

            container.ComposeParts(this);
        }