prepareAndStartServices static method
Future<void>
prepareAndStartServices(
- DarwinSystem system,
- DarwinSystemGeneratedArgs generated,
- DarwinSystemUserArgs user
Prepares all collected service descriptions and starts them via DarwinSystemServiceMixin.startServices.
Implementation
static Future<void> prepareAndStartServices(DarwinSystem system,
DarwinSystemGeneratedArgs generated, DarwinSystemUserArgs user) async {
var services = generated.services.toList();
system.plugins.addAll(user.plugins);
await system.configurePlugins().forEach((element) {
services.add(element);
});
system.serviceDescriptors.addAll(services);
await system.startServices();
}