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(); }
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(); }