Class FilePackageResolver
- Namespace
- CarinaStudio.AutoUpdate.Resolvers
- Assembly
- CarinaStudio.AppBase.AutoUpdate.dll
IPackageResolver which takes given file as update package directly.
public class FilePackageResolver : BasePackageResolver, IApplicationObject, IPackageResolver, IUpdaterComponent, IDisposable, INotifyPropertyChanged, IThreadDependent, ISynchronizable
- Inheritance
-
FilePackageResolver
- Implements
- Inherited Members
- Extension Methods
Constructors
FilePackageResolver(IApplication, string, string?, Version?)
Initialize new FilePackageResolver instance.
public FilePackageResolver(IApplication app, string packageFilePath, string? appName = null, Version? packageVersion = null)
Parameters
appIApplicationApplication.
packageFilePathstringPath of package file.
appNamestringApplication name.
packageVersionVersionVersion of package.
Properties
Source
Get or set source IStreamProvider to provide data of package manifest to be resolved.
public override IStreamProvider? Source { get; set; }
Property Value
Remarks
It is unsupported to set this property on FilePackageResolver.
Methods
PerformOperationAsync(CancellationToken)
Perform operation asynchronously.
protected override Task PerformOperationAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task
Task of performing operation.