Exemple #1
0
        protected override async void OnStop()
        {
            base.OnStop();

            if (_controller != null)
            {
                await _controller.Stop();

                _controller = null;
            }
        }
Exemple #2
0
        protected override void OnStart(string[] args)
        {
            base.OnStart(args);

            Options options = new Options();

            CommandLine.Parser.Default.ParseArguments(args, options);

            _controller = new Controller();

            _controller.Start(options);
        }