Пример #1
0
            public void AddTriggeredEvent(TriggeredEventInfo eventInfo)
            {
                if ((eventInfo.Name != null) && _model._triggeredEvents.Any(ei => ei.Name == eventInfo.Name))
                {
                    throw new ArgumentException("Event '" + eventInfo.Name + "' already exists in the model.");
                }

                _model._triggeredEvents.Add(eventInfo);
                AddPredicate(eventInfo.Predicate);
            }
Пример #2
0
 public Builder(string name)
 {
     _event = new TriggeredEventInfo(name);
 }
Пример #3
0
 public Builder()
 {
     _event = new TriggeredEventInfo(null);
 }