Class MigrationManager
Allows migration of the repository.
Inherited Members
Namespace: Ipfs.Engine.Migration
Assembly: Ipfs.Engine.dll
Syntax
public class MigrationManager
Constructors
| Improve this Doc View SourceMigrationManager(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 SourceCurrentVersion
Gets the current vesion number of the repository.
Declaration
public int CurrentVersion { get; }
Property Value
Type | Description |
---|---|
Int32 |
LatestVersion
Gets the latest supported version number of a repository.
Declaration
public int LatestVersion { get; }
Property Value
Type | Description |
---|---|
Int32 |
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 SourceMirgrateToVersionAsync(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 |