示例#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);
            }
 public Builder(string name)
 {
     _event = new TriggeredEventInfo(name);
 }
 public Builder()
 {
     _event = new TriggeredEventInfo(null);
 }