コード例 #1
0
 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();
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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;
 }