/// <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); } } }
public DokanNFCSvc() { InitializeComponent(); rfidListener = new RFIDListener(); }
public NFCDokanRFIDDriver(RFIDListener rfidListener) : base(rfidListener) { }
public DokanRFIDDriver(RFIDListener rfidListener) { this.rfidListener = rfidListener; this.cacheFiles = new Dictionary <string, FileCache>(); this.nfcConfig = DokanNFCConfig.GetSingletonInstance(); }
public DokanRFIDDriver(RFIDListener rfidListener) { this.rfidListener = rfidListener; this.cacheFiles = new Dictionary<string, FileCache>(); this.nfcConfig = DokanNFCConfig.GetSingletonInstance(); }