Class MigrationPlanExecutor
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.Migrations
Assembly: Umbraco.Infrastructure.dll
Syntax
public class MigrationPlanExecutor : IMigrationPlanExecutor
Constructors
View SourceMigrationPlanExecutor(ICoreScopeProvider, IScopeAccessor, ILoggerFactory, IMigrationBuilder)
Declaration
public MigrationPlanExecutor(ICoreScopeProvider scopeProvider, IScopeAccessor scopeAccessor, ILoggerFactory loggerFactory, IMigrationBuilder migrationBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| ICoreScopeProvider | scopeProvider | |
| IScopeAccessor | scopeAccessor | |
| ILoggerFactory | loggerFactory | |
| IMigrationBuilder | migrationBuilder |
Methods
View SourceExecute(MigrationPlan, String)
Executes the plan.
Declaration
public string Execute(MigrationPlan plan, string fromState)
Parameters
| Type | Name | Description |
|---|---|---|
| MigrationPlan | plan | |
| System.String | fromState | The state to start execution at. |
Returns
| Type | Description |
|---|---|
| System.String | The final state. |
Remarks
The plan executes within the scope, which must then be completed.