Пример #1
0
 public void InitializeUIForm(IDTSComponentMetaData componentMetadata, Variables variables, Connections connections, IDTSDesigntimeComponent designTimeComponent)
 {
     this.variables           = variables;
     this.connections         = connections;
     this.componentMetadata   = componentMetadata;
     this.designTimeComponent = designTimeComponent;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the PassThreadState class.
 /// </summary>
 /// <param name="columnToProcess">the OutputColumn that is to be processed (hashed)</param>
 /// <param name="buffer">the PipelineBuffer that is being read</param>
 /// <param name="metaData">the Component MetaData that is being processed</param>
 /// <param name="threadReset">the Event that is to be manually reset to indicate completion</param>
 /// <param name="safeNullHandling">the flag to indicate whether to have safe null handling</param>
 public PassThreadState(OutputColumn columnToProcess, PipelineBuffer buffer, IDTSComponentMetaData metaData, ManualResetEvent threadReset, bool safeNullHandling, bool millisecondHandling)
 {
     this.ColumnToProcess     = columnToProcess;
     this.Buffer              = buffer;
     this.MetaData            = metaData;
     this.ThreadReset         = threadReset;
     this.SafeNullHandling    = safeNullHandling;
     this.MillisecondHandling = millisecondHandling;
 }
Пример #3
0
        /// <summary>
        /// Called before Edit, New and Delete to pass in the necessary parameters.
        /// </summary>
        /// <param name="dtsComponentMetadata">The components metadata</param>
        /// <param name="serviceProvider">The SSIS service provider</param>
        void IDtsComponentUI.Initialize(IDTSComponentMetaData dtsComponentMetadata, IServiceProvider serviceProvider)
        {
            this.componentMetadata = dtsComponentMetadata;
            this.serviceProvider   = serviceProvider;

            Debug.Assert(this.serviceProvider != null, "The service provider was null!");

            this.errorCollector = this.serviceProvider.GetService(
                typeof(IErrorCollectionService)) as IErrorCollectionService;
            Debug.Assert(this.errorCollector != null, "The errorCollector was null!");

            if (this.errorCollector == null)
            {
                Exception ex = new System.ApplicationException(Properties.Resources.NotAllEditingServicesAvailable);
                throw ex;
            }
        }