Example #1
0
        /// <summary>
        /// Point d'entrée principal de l'application.
        /// </summary>
        static void Main()
        {
            log4net.Config.XmlConfigurator.Configure();

            string[] args = Environment.GetCommandLineArgs();
            bool startServiceMode = true;
            foreach (string p in args)
            {
                switch (p.ToLower())
                {
                        case "/debug":
                        startServiceMode = false;
                        break;
                }
            }
            if (startServiceMode)
            {
                ServiceBase[] ServicesToRun;
                ServicesToRun = new ServiceBase[]
                {
                    new DokanNFCSvc()
                };
                ServiceBase.Run(ServicesToRun);
            }
            else
            {
                RFIDListener rfidListener = new RFIDListener();
                rfidListener.Start();

                while (true)
                {
                    Thread.Sleep(500);
                }
            }
        }
Example #2
0
        /// <summary>
        /// Point d'entrée principal de l'application.
        /// </summary>
        static void Main()
        {
            log4net.Config.XmlConfigurator.Configure();

            string[] args             = Environment.GetCommandLineArgs();
            bool     startServiceMode = true;

            foreach (string p in args)
            {
                switch (p.ToLower())
                {
                case "/debug":
                    startServiceMode = false;
                    break;
                }
            }
            if (startServiceMode)
            {
                ServiceBase[] ServicesToRun;
                ServicesToRun = new ServiceBase[]
                {
                    new DokanNFCSvc()
                };
                ServiceBase.Run(ServicesToRun);
            }
            else
            {
                RFIDListener rfidListener = new RFIDListener();
                rfidListener.Start();

                while (true)
                {
                    Thread.Sleep(500);
                }
            }
        }
Example #3
0
 public DokanNFCSvc()
 {
     InitializeComponent();
     rfidListener = new RFIDListener();
 }
 public NFCDokanRFIDDriver(RFIDListener rfidListener)
     : base(rfidListener)
 {
 }
Example #5
0
 public DokanRFIDDriver(RFIDListener rfidListener)
 {
     this.rfidListener = rfidListener;
     this.cacheFiles   = new Dictionary <string, FileCache>();
     this.nfcConfig    = DokanNFCConfig.GetSingletonInstance();
 }
Example #6
0
 public DokanNFCSvc()
 {
     InitializeComponent();
     rfidListener = new RFIDListener();
 }
Example #7
0
 public DokanRFIDDriver(RFIDListener rfidListener)
 {
     this.rfidListener = rfidListener;
     this.cacheFiles = new Dictionary<string, FileCache>();
     this.nfcConfig = DokanNFCConfig.GetSingletonInstance();
 }
Example #8
0
 public NFCDokanRFIDDriver(RFIDListener rfidListener)
     : base(rfidListener)
 {
 }