コード例 #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
ファイル: ISEventHandler.cs プロジェクト: samskolli/Pegasus
 public ISEventHandler(SSISEventHandler eventName, ISEventsProvider attachedContainer) : this(eventName.ToString(), attachedContainer)
 {
 }
コード例 #3
0
ファイル: ISEventHandler.cs プロジェクト: samskolli/Pegasus
        //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
ファイル: ISContainer.cs プロジェクト: samskolli/Pegasus
 /// <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;
 }