CloverWindowsSDKREST.CloverRESTService.DebugStart C# (CSharp) Метод

DebugStart() публичный Метод

public DebugStart ( string args ) : void
args string
Результат void
        public void DebugStart(string[] args)
        {
            args = new string[] { "-timer=3", "-debug" };
            OnStart(args);
        }

Usage Example

Пример #1
0
        static void Main(string[] args)
        {
            // /P - port, /C - certificate path, /T - test/emulator connector, /L - lan adapter
            // /D - developer/debug mode, runs in console
            bool console = false;

            foreach (string s in args)
            {
                if ("/D".Equals(s))
                {
                    console = true;
                    break;
                }
            }

            if (console)
            {
                CloverRESTService service = new CloverRESTService();
                service.DebugStart(args);
                System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
            }
            else
            {
                ServiceBase.Run(new CloverRESTService());
            }
        }
All Usage Examples Of CloverWindowsSDKREST.CloverRESTService::DebugStart