ServiceHost constructor

ServiceHost(
  1. List<BaseService Function()> factories, {
  2. bool failWithServices = true,
  3. LogBackend? logBackend,
  4. List<String> args = const <String>[],
  5. Map<String, dynamic> config = const <String, dynamic>{},
})

Implementation

ServiceHost(
  List<BaseService Function()> factories, {
  this.failWithServices = true,
  LogBackend? logBackend,
  List<String> args = const <String>[],
  Map<String, dynamic> config = const <String, dynamic>{},
}) {
  _factories = <BaseService Function()>[
    () => LogService(logBackend ?? ConsoleLogBackend()),
    () => ConfigService(config, args),
    SchedulerService.new,
    KeyService.new,
    ...factories,
  ];
}