prepareAndStartServices static method

Future<void> prepareAndStartServices(
  1. DarwinSystem system,
  2. DarwinSystemGeneratedArgs generated,
  3. 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();
}