예제 #1
0
        public SequentialIntService(ISequentialIntService service = null)
        {
            this.id = Guid.NewGuid();

            this.MakeAware(service);

            CreateServiceNodes();
        }
예제 #2
0
        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);
            }
        }