public MigrationEngineCore(IHost host, ILogger <MigrationEngineCore> log, ITelemetryLogger telemetry, IEngineConfigurationBuilder configBuilder) { _Host = host; _Log = log; _Telemetry = telemetry; _Config = configBuilder.BuildFromFile(); _witdContainer = _Host.Services.GetRequiredService <TypeDefinitionMapContainer>(); _pContainer = _Host.Services.GetRequiredService <ProcessorContainer>(); _grmContainer = _Host.Services.GetRequiredService <GitRepoMapContainer>(); ProcessConfiguration(); }
public MigrationEngine(EngineConfiguration config, TypeDefinitionMapContainer typeDefinitionMaps, ProcessorContainer processors, GitRepoMapContainer gitRepoMaps, ChangeSetMappingContainer changeSetMapps, ITelemetryLogger telemetry) { Log.Information("Creating Migration Engine {Guid}", _Guid); TypeDefinitionMaps = typeDefinitionMaps; Processors = processors; GitRepoMaps = gitRepoMaps; ChangeSetMapps = changeSetMapps; Telemetry = telemetry; ProcessConfiguration(config); }
public MigrationEngine( IServiceProvider services, ExecuteOptions executeOptions, EngineConfiguration config, TypeDefinitionMapContainer typeDefinitionMaps, ProcessorContainer processors, GitRepoMapContainer gitRepoMaps, ChangeSetMappingContainer changeSetMapps, FieldMapContainer fieldMaps, ITelemetryLogger telemetry) { Log.Information("Creating Migration Engine {Guid}", _Guid); _services = services; FieldMaps = fieldMaps; this.executeOptions = executeOptions; TypeDefinitionMaps = typeDefinitionMaps; Processors = processors; GitRepoMaps = gitRepoMaps; ChangeSetMapps = changeSetMapps; Telemetry = telemetry; Config = config; }
public MigrationEngine( IServiceProvider services, IOptions <NetworkCredentialsOptions> networkCredentials, EngineConfiguration config, TypeDefinitionMapContainer typeDefinitionMaps, ProcessorContainer processors, GitRepoMapContainer gitRepoMaps, ChangeSetMappingContainer changeSetMapps, FieldMapContainer fieldMaps, ITelemetryLogger telemetry) { Log.Information("Creating Migration Engine {SessionId}", telemetry.SessionId); _services = services; FieldMaps = fieldMaps; _networkCredentials = networkCredentials.Value; TypeDefinitionMaps = typeDefinitionMaps; Processors = processors; GitRepoMaps = gitRepoMaps; ChangeSetMapps = changeSetMapps; Telemetry = telemetry; Config = config; }