registerService<T extends InqvineServiceBase> method

Future<void> registerService<T extends InqvineServiceBase>(
  1. T service
)

Register an service which extends InqvineServiceBase. initializeService is then called.

Implementation

Future<void> registerService<T extends InqvineServiceBase>(T service) async {
  'Registering a new service: $service'.logDebug();
  _locator.registerSingleton<T>(service);
  await service.initializeService();
}