예제 #1
0
        /// <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);
            }
        }
예제 #2
0
 public ISEventHandler(SSISEventHandler eventName, ISEventsProvider attachedContainer) : this(eventName.ToString(), attachedContainer)
 {
 }
예제 #3
0
        //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);
        }
예제 #4
0
 /// <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;
 }
예제 #5
0
 /// <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;
 }
예제 #6
0
 /// <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;
 }