public EnumeratingAsyncProcess(IAsyncMechanism mechanism, IEnumerable <T> toProcess, Action <T> processor) : base(mechanism) { this.enumerator = toProcess.GetEnumerator(); this.action = processor; this.count = Enumerable.Count <T>(toProcess); this.completedCount = 0; }
protected AsyncDataXamlProcessor(IAsyncMechanism asyncMechanism, IProjectContext projectContext, ChangeProcessingModes processingMode) : base(asyncMechanism) { this.ProjectContext = projectContext; this.ProcessingMode = processingMode; this.ExpressionEvaluator = new ExpressionEvaluator((IDocumentRootResolver)this.ProjectContext); this.sortedDocuments = new List <IProjectDocument>((IEnumerable <IProjectDocument>) this.ProjectContext.Documents); this.sortedDocuments.Sort((Comparison <IProjectDocument>)((a, b) => AsyncDataXamlProcessor.GetDocumentTypeOrder(a) - AsyncDataXamlProcessor.GetDocumentTypeOrder(b))); }
protected DocumentProcessor(DesignerContext designerContext, IAsyncMechanism asyncMechanism) : base(asyncMechanism) { this.designerContext = designerContext; }
public DataRemovalProcessor(IAsyncMechanism asyncMechanism, IProjectContext projectContext, ChangeProcessingModes processingMode) : base(asyncMechanism, projectContext, processingMode) { }
public LiveDataRemovalProcessor(IAsyncMechanism asyncMechanism, DocumentCompositeNode resourceNode, ChangeProcessingModes processingMode) : base(asyncMechanism, (IProjectContext)resourceNode.TypeResolver, processingMode) { this.resourceNode = resourceNode; }
public ReferenceRepairProcessor(DesignerContext designerContext, ReferenceChangeModel referenceChangeModel, IAsyncMechanism asyncMechanism) : base(designerContext, asyncMechanism) { this.referenceChangeModel = referenceChangeModel; this.Begun += new EventHandler(this.OnReferenceRepairProcessorBegun); this.Complete += new EventHandler(this.OnReferenceRepairProcessorComplete); }
public SerialAsyncProcess(IAsyncMechanism mechanism, params AsyncProcess[] processes) : base(mechanism) { this.processes = new List <AsyncProcess>((IEnumerable <AsyncProcess>)processes); this.currentProcessIndex = -1; }
public SerialAsyncProcess(IAsyncMechanism mechanism) : base(mechanism) { this.processes = new List <AsyncProcess>(); this.currentProcessIndex = -1; }
public SampleDataChangeProcessor(IAsyncMechanism asyncMechanism, SampleDataSet dataSet, IList <SampleDataChange> normalizedChanges, ChangeProcessingModes processingMode) : base(asyncMechanism, (IProjectContext)dataSet.ProjectContext, processingMode) { this.documentProcessor = new SampleDataDocumentChangeProcessor(this, dataSet, normalizedChanges); }
public DesignDataRemovalProcessor(IAsyncMechanism asyncMechanism, string designDataFile, IProjectContext projectContext, ChangeProcessingModes processingMode) : base(asyncMechanism, projectContext, processingMode) { this.designDataFile = designDataFile; }
public SampleDataEnableAtRuntimeProcessor(IAsyncMechanism asyncMechanism, SampleDataSet dataSet, ChangeProcessingModes processingMode) : base(asyncMechanism, (IProjectContext)dataSet.ProjectContext, processingMode) { this.SampleData = dataSet; }
public DelegateAsyncProcess(Action <object, DoWorkEventArgs> workerDelegate, IAsyncMechanism mechanism) : base(mechanism) { this.workerDelegate = workerDelegate; this.stillWorking = true; }
public AsyncQueueProcess(IAsyncMechanism mechanism) : base(mechanism) { this.InternalReset(); }
protected AsyncProcess(IAsyncMechanism asyncMechanism) { this.asyncMechanism = asyncMechanism; }