You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- public class ServiceActivator
- {
- // This contains *all* registered services of serviceType IService
- private readonly IEnumerable<IService> _services;
-
- public ServiceActivator(IEnumerable<IService> services)
- {
- _services = services;
- }
-
- public async Task ActivateAsync()
- {
- foreach(var service in _services)
- {
- await service.StartAsync();
- }
- }
- }
|