Exemplo n.º 1
0
        static void Main(string[] args)
        {
            XmlConfigurator.Configure();

            ArgvConfigSource configSource = new ArgvConfigSource(args);
            configSource.AddSwitch("Startup", "inifile");

            AssetInventoryServer server = new AssetInventoryServer(configSource);
            if (server.Start())
            {
                Console.CancelKeyPress +=
                    delegate(object sender, ConsoleCancelEventArgs e)
                    {
                        m_log.Info("AssetInventory server is shutting down...");
                        server.Shutdown();
                        Environment.Exit(0);
                    };

                server.Work();
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            XmlConfigurator.Configure();

            ArgvConfigSource configSource = new ArgvConfigSource(args);

            configSource.AddSwitch("Startup", "inifile");

            AssetInventoryServer server = new AssetInventoryServer(configSource);

            if (server.Start())
            {
                Console.CancelKeyPress +=
                    delegate(object sender, ConsoleCancelEventArgs e)
                {
                    m_log.Info("AssetInventory server is shutting down...");
                    server.Shutdown();
                    Environment.Exit(0);
                };

                server.Work();
            }
        }
Exemplo n.º 3
0
 public AssetInventoryServerPluginInitialiser(AssetInventoryServer server)
 {
     this.server = server;
 }