Exemplo n.º 1
0
        public void start()
        {
            IServiceManager serviceManager = ServiceManager.Instance();

            serviceManager.registerService(Services.Configuration, new Configuration(args));
            serviceManager.registerService(Services.Logger, new Logger());
            serviceManager.registerService(Services.Server, new Server());

            MidiService midiService = new MidiService();
            serviceManager.registerService(Services.Dispatch, midiService);
            serviceManager.registerService(Services.Midi, midiService);

            serviceManager.startServices();
        }
Exemplo n.º 2
0
        public void start()
        {
            IServiceManager serviceManager = ServiceManager.Instance();

            serviceManager.registerService(Services.Configuration, new Configuration(args));
            serviceManager.registerService(Services.Logger, new Logger());
            serviceManager.registerService(Services.Server, new Server());

            MidiService midiService = new MidiService();

            serviceManager.registerService(Services.Dispatch, midiService);
            serviceManager.registerService(Services.Midi, midiService);

            serviceManager.startServices();
        }