void OnOperatorCreated(IOperatorCreatedEvent operatorCreatedEvent) { var operatorModel = new ObservableState(operatorCreatedEvent); _observableRepository.TryAdd(operatorCreatedEvent.Id, operatorModel); TrackedObservables.Add(operatorModel); }
public Subscription(ISubscribeEvent subscribeEvent, ObservableState child, ObservableState parent) { SubscriptionId = subscribeEvent.EventId; Parent = parent; Child = child; IsActive = true; Created = TimeSpan.FromMilliseconds(subscribeEvent.EventTime); }