public SequentialIntService(ISequentialIntService service = null) { this.id = Guid.NewGuid(); this.MakeAware(service); CreateServiceNodes(); }
public void MakeAware(ISequentialIntService newService) { if (services.Contains(newService) || newService == null) return; if (newService != this) { services.Add(newService); newService.MakeAware(this); } foreach (var service in services) { newService.MakeAware(service); service.MakeAware(newService); } }