Show / Hide Table of Contents

Class MigrationManager

Allows migration of the repository.

Inheritance
Object
MigrationManager
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Ipfs.Engine.Migration
Assembly: Ipfs.Engine.dll
Syntax
public class MigrationManager

Constructors

| Improve this Doc View Source

MigrationManager(IpfsEngine)

Creates a new instance of the MigrationManager class for the specifed IpfsEngine.

Declaration
public MigrationManager(IpfsEngine ipfs)
Parameters
Type Name Description
IpfsEngine ipfs

Properties

| Improve this Doc View Source

CurrentVersion

Gets the current vesion number of the repository.

Declaration
public int CurrentVersion { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

LatestVersion

Gets the latest supported version number of a repository.

Declaration
public int LatestVersion { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Migrations

The list of migrations that can be performed.

Declaration
public List<IMigration> Migrations { get; }
Property Value
Type Description
List<IMigration>

Methods

| Improve this Doc View Source

MirgrateToVersionAsync(Int32, CancellationToken)

Upgrade/downgrade to the specified version.

Declaration
public Task MirgrateToVersionAsync(int version, CancellationToken cancel = default(CancellationToken))
Parameters
Type Name Description
Int32 version

The required version of the repository.

CancellationToken cancel
Returns
Type Description
Task
  • Improve this Doc
  • View Source
Back to top Generated by DocFX