Search Results for

    Show / Hide Table of Contents
    View Source

    Class MigrationPlanExecutor

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.Migrations
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class MigrationPlanExecutor : IMigrationPlanExecutor

    Constructors

    View Source

    MigrationPlanExecutor(ICoreScopeProvider, IScopeAccessor, ILoggerFactory, IMigrationBuilder, IUmbracoDatabaseFactory, IDatabaseCacheRebuilder, DistributedCache, IKeyValueService, IServiceScopeFactory)

    Declaration
    public MigrationPlanExecutor(ICoreScopeProvider scopeProvider, IScopeAccessor scopeAccessor, ILoggerFactory loggerFactory, IMigrationBuilder migrationBuilder, IUmbracoDatabaseFactory databaseFactory, IDatabaseCacheRebuilder databaseCacheRebuilder, DistributedCache distributedCache, IKeyValueService keyValueService, IServiceScopeFactory serviceScopeFactory)
    Parameters
    Type Name Description
    ICoreScopeProvider scopeProvider
    IScopeAccessor scopeAccessor
    ILoggerFactory loggerFactory
    IMigrationBuilder migrationBuilder
    IUmbracoDatabaseFactory databaseFactory
    IDatabaseCacheRebuilder databaseCacheRebuilder
    DistributedCache distributedCache
    IKeyValueService keyValueService
    IServiceScopeFactory serviceScopeFactory
    View Source

    MigrationPlanExecutor(ICoreScopeProvider, IScopeAccessor, ILoggerFactory, IMigrationBuilder, IUmbracoDatabaseFactory, IDatabaseCacheRebuilder, DistributedCache, IKeyValueService, IServiceScopeFactory, AppCaches)

    Declaration
    public MigrationPlanExecutor(ICoreScopeProvider scopeProvider, IScopeAccessor scopeAccessor, ILoggerFactory loggerFactory, IMigrationBuilder migrationBuilder, IUmbracoDatabaseFactory databaseFactory, IDatabaseCacheRebuilder databaseCacheRebuilder, DistributedCache distributedCache, IKeyValueService keyValueService, IServiceScopeFactory serviceScopeFactory, AppCaches appCaches)
    Parameters
    Type Name Description
    ICoreScopeProvider scopeProvider
    IScopeAccessor scopeAccessor
    ILoggerFactory loggerFactory
    IMigrationBuilder migrationBuilder
    IUmbracoDatabaseFactory databaseFactory
    IDatabaseCacheRebuilder databaseCacheRebuilder
    DistributedCache distributedCache
    IKeyValueService keyValueService
    IServiceScopeFactory serviceScopeFactory
    AppCaches appCaches

    Methods

    View Source

    Execute(MigrationPlan, String)

    Declaration
    public string Execute(MigrationPlan plan, string fromState)
    Parameters
    Type Name Description
    MigrationPlan plan
    System.String fromState
    Returns
    Type Description
    System.String
    View Source

    ExecutePlan(MigrationPlan, String)

    Executes the plan.

    Declaration
    public ExecutedMigrationPlan ExecutePlan(MigrationPlan plan, string fromState)
    Parameters
    Type Name Description
    MigrationPlan plan

    The migration plan to be executes.

    System.String fromState

    The state to start execution at.

    Returns
    Type Description
    ExecutedMigrationPlan

    ExecutedMigrationPlan containing information about the plan execution, such as completion state and the steps that ran.

    Remarks

    Each migration in the plan, may or may not run in a scope depending on the type of plan.

    A plan can complete partially, the changes of each completed migration will be saved.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MigrationPlanExecutor(ICoreScopeProvider, IScopeAccessor, ILoggerFactory, IMigrationBuilder, IUmbracoDatabaseFactory, IDatabaseCacheRebuilder, DistributedCache, IKeyValueService, IServiceScopeFactory)
      • MigrationPlanExecutor(ICoreScopeProvider, IScopeAccessor, ILoggerFactory, IMigrationBuilder, IUmbracoDatabaseFactory, IDatabaseCacheRebuilder, DistributedCache, IKeyValueService, IServiceScopeFactory, AppCaches)
    • Methods
      • Execute(MigrationPlan, String)
      • ExecutePlan(MigrationPlan, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX