示例#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);
                }
            }
        }
示例#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);
                }
            }
        }
示例#3
0
 public DokanNFCSvc()
 {
     InitializeComponent();
     rfidListener = new RFIDListener();
 }
 public NFCDokanRFIDDriver(RFIDListener rfidListener)
     : base(rfidListener)
 {
 }
示例#5
0
 public DokanRFIDDriver(RFIDListener rfidListener)
 {
     this.rfidListener = rfidListener;
     this.cacheFiles   = new Dictionary <string, FileCache>();
     this.nfcConfig    = DokanNFCConfig.GetSingletonInstance();
 }
示例#6
0
 public DokanNFCSvc()
 {
     InitializeComponent();
     rfidListener = new RFIDListener();
 }
示例#7
0
 public DokanRFIDDriver(RFIDListener rfidListener)
 {
     this.rfidListener = rfidListener;
     this.cacheFiles = new Dictionary<string, FileCache>();
     this.nfcConfig = DokanNFCConfig.GetSingletonInstance();
 }
示例#8
0
 public NFCDokanRFIDDriver(RFIDListener rfidListener)
     : base(rfidListener)
 {
 }