/// <summary> /// This constructor is to facilitate adding/accessing Event Handlers /// </summary> /// <param name="eventName"></param> /// <param name="attachedContainer"></param> internal ISExecutable(string eventName, ISEventsProvider attachedContainer) { bool eventHandlerExists = false; for (int e = 0; e < attachedContainer.EventHandlers_m.Count; e++) { if (attachedContainer.EventHandlers_m[e].CreationName == eventName) { eventHandlerExists = true; Executable = (attachedContainer.EventHandlers_m[e] as Executable); } } if (eventHandlerExists == false) { Executable = (attachedContainer.EventHandlers_m.Add(eventName) as Executable); } }
public ISEventHandler(SSISEventHandler eventName, ISEventsProvider attachedContainer) : this(eventName.ToString(), attachedContainer) { }
//internal DtsEventHandler EventHandler { get { return (Executable as DtsEventHandler); } set { } } #endregion #region ctor /// <summary> /// ctor that takes in a Event Name and the container the event handler should belong to /// </summary> /// <param name="eventName"></param> /// <param name="attachedContainer"></param> public ISEventHandler(string eventName, ISEventsProvider attachedContainer) : base(eventName, attachedContainer) { EventHandler = (Executable as DtsEventHandler); }
/// <summary> /// This constructor is to facilitate adding/accessing Event Handlers /// </summary> /// <param name="eventName"></param> /// <param name="attachedContainer"></param> internal ISEventsProvider(string eventName, ISEventsProvider attachedContainer) : base(eventName, attachedContainer) { //EventsProvider = (EventsProvider)Container; }
/// <summary> /// This constructor is to facilitate adding/accessing Event Handlers /// </summary> /// <param name="eventName"></param> /// <param name="attachedContainer"></param> internal ISEventsProviderAsIDTSSequence(string eventName, ISEventsProvider attachedContainer) : base(eventName, attachedContainer) { EventsProviderAsIDTSSequence = (IDTSSequence)Container; }
/// <summary> /// This constructor is to facilitate adding/accessing Event Handlers /// </summary> /// <param name="eventName"></param> /// <param name="attachedContainer"></param> internal ISContainer(string eventName, ISEventsProvider attachedContainer) : base(eventName, attachedContainer) { Container = (DtsContainer)Executable; }