public ProcessAction(Func <IComplexEventParameters, Task <IProcessSystemMessage> > action, Func <IComplexEventParameters, IStateCommandInfo> processInfo, ISourceType expectedSourceType) { Contract.Requires(action != null); Action = action; ProcessInfo = processInfo; ExpectedSourceType = expectedSourceType; }
/// <summary> /// The update data source. /// </summary> private void UpdateDataSource() { Logger.Trace("Started UpdateDataSource()"); if (DataSource != null) { this.loading = true; sourceType = ScaffoldConfig.ReturnSourceType(DataSource.SourceTypeId); ITableHierarchyService applicationService = new TempateHierarchyService(); List <Hierarchy> hierarchy = applicationService.ReturnHierarchyFromList(DataSource.Tables, true, true, true); AddNodes("Models", DomainTreeView, hierarchy, applicationService); this.loading = false; } else { Logger.Trace("Data Source not updated as domain is null "); } Logger.Trace("Completed UpdateDataSource()"); }
public Source(Guid sourceId, string sourceName, ISourceType sourceType, ISystemProcess process, IMachineInfo machineInfo) { SourceId = sourceId; SourceName = sourceName; MachineInfo = machineInfo; Process = process; SourceType = sourceType; }
public ProcessExpectedEvent(string key, int processId, Type eventType, Func <IProcessSystemMessage, bool> eventPredicate, IProcessStateInfo processInfo, ISourceType expectedSourceType) { ProcessId = processId; EventType = eventType; EventPredicate = eventPredicate; ProcessInfo = processInfo; ExpectedSourceType = expectedSourceType; Key = key; }
/// <summary> /// The update data source. /// </summary> private void UpdateDataSource() { Logger.Trace("Started UpdateDataSource()"); if (this.DataSource != null) { this.sourceType = ScaffoldConfig.ReturnSourceType(this.DataSource.SourceTypeId); var a = this.sourceType.Import(this.sourceType.Load(this.SavePath)); } else { Logger.Trace("Data Source not updated as domain is null "); } Logger.Trace("Completed UpdateDataSource()"); }
/// <summary> /// The update data source. /// </summary> private void UpdateDataSource() { Logger.Trace("Started UpdateDataSource()"); if (this.DataSource != null) { this.updateModelsFromSourceUserControl1.SavePath = this.SavePath; this.sourceType = ScaffoldConfig.ReturnSourceType(this.DataSource.SourceTypeId); this.updateModelsFromSourceUserControl1.DataSource = this.DataSource; } else { Logger.Trace("Data Source not updated as domain is null "); } Logger.Trace("Completed UpdateDataSource()"); }
/// <summary> /// The update data source. /// </summary> private void UpdateDataSource() { Logger.Trace("Started UpdateDataSource()"); if (this.DataSource != null) { this.sourceType = ScaffoldConfig.ReturnSourceType(this.DataSource.SourceTypeId); this.panel1.Controls.Clear(); this.sourceTypeControl = this.sourceType.AddConfigUI(this.panel1) as IDataSourceUI; this.sourceTypeControl.SourceType = this.sourceType; this.sourceTypeControl.LoadData(this.SavePath); } else { Logger.Trace("Data Source not updated as domain is null "); } Logger.Trace("Completed UpdateDataSource()"); }
/// <summary> /// The update data source. /// </summary> private void UpdateDataSource() { Logger.Trace("Started UpdateDataSource()"); if (DataSource != null) { this.loading = true; ModelFormUserControl1.SavePath = SavePath; sourceType = ScaffoldConfig.ReturnSourceType(DataSource.SourceTypeId); ModelFormUserControl1.DataSource = DataSource; this.loading = false; } else { Logger.Trace("Data Source not updated as domain is null "); } Logger.Trace("Completed UpdateDataSource()"); }
/// <summary> /// The update data source. /// </summary> private void UpdateDataSource() { Logger.Trace("Started UpdateDataSource()"); if (this.DataSource != null) { Thread splashthread = this.StartSplashScreen(); Thread.Sleep(100); SplashScreen.UdpateStatusText("Loading schema information"); this.sourceType = ScaffoldConfig.ReturnSourceType(this.DataSource.SourceTypeId); this.tabPage2.Controls.Clear(); this.sourceTypeControl = this.sourceType.AddConfigUI(this.tabPage2) as IDataSourceUI; this.sourceTypeControl.SourceType = this.sourceType; if (this.sourceTypeControl.LoadData(this.SavePath)) { Thread.Sleep(100); this.CloseSplashScreen(); } else { Thread.Sleep(100); this.CloseSplashScreen(); MessageBox.Show( "Failed to Connect to Datasource", "Loading", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { Logger.Trace("Data Source not updated as domain is null "); } Logger.Trace("Completed UpdateDataSource()"); }
/// <summary> /// The update data source. /// </summary> private void UpdateDataSource() { Logger.Trace("Started UpdateDataSource()"); if (this.DataSource != null) { this.sourceType = ScaffoldConfig.ReturnSourceType(this.DataSource.SourceTypeId); var sourceOptions = this.sourceType.Load(this.SavePath); if (this.sourceType.Test(sourceOptions)) { this.StartSplashScreen(); Thread.Sleep(100); SplashScreen.UdpateStatusText("Loading schema information"); this.sourceDomain = this.sourceType.Import(sourceOptions); IApplicationTableCollectionDifference differenceService = new ApplicationTableCollectionDifference(new ApplicationTableDifference()); this.differences = differenceService.CompareTables(this.DataSource.Tables, this.sourceDomain.Tables); ITableHierarchyService applicationService = new TempateHierarchyService(); List <Hierarchy> hierarchy = applicationService.ReturnHierarchyFromList( this.differences.FirstExtraTables, false, false, false); this.AddNodes("Models", this.TreeViewAdd, hierarchy, applicationService); hierarchy = applicationService.ReturnHierarchyFromList(this.differences.RefreshTable, false, false, false); this.AddNodes("Models", this.TreeViewRefresh, hierarchy, applicationService); hierarchy = applicationService.ReturnHierarchyFromList( this.differences.FirstMissingTables, false, false, false); this.AddNodes("Models", this.TreeViewDelete, hierarchy, applicationService); this.Valid = true; Thread.Sleep(100); this.CloseSplashScreen(false); } else { MessageBox.Show( "Invalid configuration. Please update source configuration.", "Configuration Error", MessageBoxButtons.OK, MessageBoxIcon.Error); this.Valid = false; } } else { this.Valid = false; Logger.Trace("Data Source not updated as domain is null "); } Logger.Trace("Completed UpdateDataSource()"); }
public IncomingProducts(ISourceType src) { _src = src; }
/// <summary> /// The preserve custom metadata. /// </summary> /// <param name="newTableList"> /// The new table list. /// </param> /// <param name="oldTableList"> /// The old table list. /// </param> /// <param name="sourceType"> /// The source Type. /// </param> public void PreserveCustomMetadata(List <Table> newTableList, List <Table> oldTableList, ISourceType sourceType) { // Do our best to preserve table, column and relationship metadata foreach (var newTable in newTableList) { PreserveCustomMetadata(oldTableList, newTable); } sourceType.Fix(newTableList); }