Exemplo n.º 1
0
        /// <summary>
        /// Service is being started
        /// </summary>
        /// <param name="args"></param>
        protected override void OnStart(string[] args)
        {
            MasterServer.ParseCommandLineVars(String.Format("xmpms {0}", String.Join(" ", args)));

            ICommandInterface commandInterface = ModuleManager.GetModule <ICommandInterface>(typeof(TelnetCommandLine));

            if (!MasterServer.Start(null, commandInterface))
            {
                throw new InvalidOperationException("Error initialising service");
            }
        }