public override void Configure(IProcessorOptions config) { Log.LogInformation("Processor::Configure"); _config = (WorkItemMigrationProcessorOptions)config; Endpoints.ConfigureEndpoints(config.Endpoints); ProcessorEnrichers.ConfigureEnrichers(config.Enrichers); }
public virtual void Configure(IProcessorOptions options) { Log.LogInformation("Processor::Configure"); Endpoints.ConfigureEndpoints(options.Source, options.Target); ProcessorEnrichers.ConfigureEnrichers(options.ProcessorEnrichers); _ProcessorConfigured = true; }
protected override void InternalExecute() { Log.LogInformation("Processor::InternalExecute::Start"); EnsureConfigured(); ProcessorEnrichers.ProcessorExecutionBegin(this); MigratePipelinesAsync().GetAwaiter().GetResult(); ProcessorEnrichers.ProcessorExecutionEnd(this); Log.LogInformation("Processor::InternalExecute::End"); }
protected override void InternalExecute() { Log.LogInformation("Processor::InternalExecute::Start"); EnsureConfigured(); ProcessorEnrichers.ProcessorExecutionBegin(this); MigrateTeamSettings(); ProcessorEnrichers.ProcessorExecutionEnd(this); Log.LogInformation("Processor::InternalExecute::End"); }
public virtual void Configure(IProcessorOptions options) { Log.LogInformation("Processor::Configure"); Source = _endpointFactory.CreateEndpoint(options.SourceName); Target = _endpointFactory.CreateEndpoint(options.TargetName); //Endpoints.ConfigureEndpoints(source, target); ProcessorEnrichers.ConfigureEnrichers(options.ProcessorEnrichers); _ProcessorConfigured = true; }
protected override void InternalExecute() { Log.LogInformation("Processor::InternalExecute::Start"); EnsureConfigured(); ProcessorEnrichers.ProcessorExecutionBegin(this); nodeStructureEnricher = Services.GetRequiredService <TfsNodeStructure>(); nodeStructureEnricher.Configure(new TfsNodeStructureOptions() { Enabled = true, NodeBasePaths = _Options.NodeBasePaths, PrefixProjectToNodes = _Options.PrefixProjectToNodes }); nodeStructureEnricher.ProcessorExecutionBegin(null); ProcessorEnrichers.ProcessorExecutionEnd(this); Log.LogInformation("Processor::InternalExecute::End"); }
protected override void InternalExecute() { Log.LogInformation("Processor::InternalExecute::Start"); EnsureConfigured(); ProcessorEnrichers.ProcessorExecutionBegin(this); var source = (IWorkItemSourceEndpoint)Source; List<WorkItemData> workItems = source.GetWorkItems().ToList(); ProcessorEnrichers.ProcessorExecutionAfterSource(this, workItems); foreach (WorkItemData item in workItems) { ProcessorEnrichers.ProcessorExecutionBeforeProcessWorkItem(this, item); ProcessWorkItem(item, _config.WorkItemCreateRetryLimit); ProcessorEnrichers.ProcessorExecutionAfterProcessWorkItem(this, item); } ProcessorEnrichers.ProcessorExecutionEnd(this); Log.LogInformation("Processor::InternalExecute::End"); }
public virtual void Configure(IProcessorOptions options) { Log.LogInformation("Processor::Configure"); Log.LogInformation("Processor::Configure Processor Type {Name}", Name); try { Source = _endpointFactory.CreateEndpoint(options.SourceName); } catch (ArgumentNullException) { Log.LogError("In the Processor configuration, specify the SourceName, for example \"SourceName\" : \"mySourceName\" and make sure there's an EndPoint with that name"); throw; } catch (InvalidOperationException) { Log.LogError("Couldn't find a Source EndPoint with SourceName [{0}]", options.SourceName); throw; } try { Target = _endpointFactory.CreateEndpoint(options.TargetName); } catch (ArgumentNullException) { Log.LogError("In the Processor configuration, specify the TargetName, for example \"TargetName\" : \"myTargetName\" and make sure there's an EndPoint with that name"); throw; } catch (InvalidOperationException) { Log.LogError("Couldn't find a Target EndPoint with TargetName [{0}]", options.TargetName); throw; } //Endpoints.ConfigureEndpoints(source, target); ProcessorEnrichers.ConfigureEnrichers(options.ProcessorEnrichers); _ProcessorConfigured = true; }