void OnOperatorCreated(IOperatorCreatedEvent operatorCreatedEvent)
        {
            var operatorModel = new ObservableState(operatorCreatedEvent);

            _observableRepository.TryAdd(operatorCreatedEvent.Id, operatorModel);
            TrackedObservables.Add(operatorModel);
        }
示例#2
0
 public Subscription(ISubscribeEvent subscribeEvent, ObservableState child, ObservableState parent)
 {
     SubscriptionId = subscribeEvent.EventId;
     Parent         = parent;
     Child          = child;
     IsActive       = true;
     Created        = TimeSpan.FromMilliseconds(subscribeEvent.EventTime);
 }