Search Results for

    Show / Hide Table of Contents

    Class PackageMigrationRunner

    Runs the package migration plans

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.Install
    Assembly: cs.temp.dll.dll
    Syntax
    public class PackageMigrationRunner

    Constructors

    PackageMigrationRunner(IProfilingLogger, IScopeProvider, PendingPackageMigrations, PackageMigrationPlanCollection, IMigrationPlanExecutor, IKeyValueService, IEventAggregator)

    Declaration
    public PackageMigrationRunner(IProfilingLogger profilingLogger, IScopeProvider scopeProvider, PendingPackageMigrations pendingPackageMigrations, PackageMigrationPlanCollection packageMigrationPlans, IMigrationPlanExecutor migrationPlanExecutor, IKeyValueService keyValueService, IEventAggregator eventAggregator)
    Parameters
    Type Name Description
    IProfilingLogger profilingLogger
    IScopeProvider scopeProvider
    PendingPackageMigrations pendingPackageMigrations
    PackageMigrationPlanCollection packageMigrationPlans
    IMigrationPlanExecutor migrationPlanExecutor
    IKeyValueService keyValueService
    IEventAggregator eventAggregator

    Methods

    RunPackageMigrationsIfPending(String)

    Runs all migration plans for a package name if any are pending.

    Declaration
    public IEnumerable<ExecutedMigrationPlan> RunPackageMigrationsIfPending(string packageName)
    Parameters
    Type Name Description
    System.String packageName
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ExecutedMigrationPlan>

    RunPackagePlans(IEnumerable<String>)

    Runs the all specified package migration plans and publishes a if all are successful.

    Declaration
    public IEnumerable<ExecutedMigrationPlan> RunPackagePlans(IEnumerable<string> plansToRun)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> plansToRun
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ExecutedMigrationPlan>
    Exceptions
    Type Condition
    System.Exception

    If any plan fails it will throw an exception.

    In This Article
    • Constructors
      • PackageMigrationRunner(IProfilingLogger, IScopeProvider, PendingPackageMigrations, PackageMigrationPlanCollection, IMigrationPlanExecutor, IKeyValueService, IEventAggregator)
    • Methods
      • RunPackageMigrationsIfPending(String)
      • RunPackagePlans(IEnumerable<String>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX