ServiceHost constructor
ServiceHost(
- List<
BaseService Function()> factories, { - bool failWithServices = true,
- LogBackend? logBackend,
- List<
String> args = const <String>[], - 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,
];
}