Exemplo n.º 1
0
        protected override void OnStart(string[] args)
        {
            StringBuilder sb = new StringBuilder();

            if (args != null)
            {
                foreach (string a in args)
                {
                    sb.Append(a).Append(" ");
                }
            }
            Program.Log.Write(LogType.Debug, "Arguments: " + sb.ToString());

            DeviceLicense device = licensecontroler.Start(args);

            if (device == null)
            {
                return;
            }

            if (!StartAdapter(device))
            {
                return;
            }

            messager.NotifyServiceStart();
            garbagecollector.Start();
        }
Exemplo n.º 2
0
        protected override void OnStart(string[] args)
        {
            DumpArgument(args);

            if (Program.License.Config.Enabled)
            {
                DeviceLicense device = licensecontroler.Start();
                if (device == null)
                {
                    return;
                }
            }

            _container.Start();

            NotifyServiceStatusChange(0);
        }