Class BackgroundOperation
- Namespace
- Playnite
- Assembly
- Playnite.SDK.dll
A base class for objects of which the properties must be observable.
public abstract class BackgroundOperation : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, IAsyncDisposable
- Inheritance
-
BackgroundOperation
- Implements
- Inherited Members
Constructors
BackgroundOperation(string, string)
public BackgroundOperation(string id, string name)
Parameters
Properties
Id
public string Id { get; }
Property Value
Name
[ExcludeFromCodeCoverage]
public string Name { get; set; }
Property Value
Pausable
[ExcludeFromCodeCoverage]
public bool Pausable { get; set; }
Property Value
ProgressIsIndeterminate
[ExcludeFromCodeCoverage]
public bool ProgressIsIndeterminate { get; set; }
Property Value
ProgressMaximum
[ExcludeFromCodeCoverage]
public double ProgressMaximum { get; set; }
Property Value
ProgressValue
[ExcludeFromCodeCoverage]
public double ProgressValue { get; set; }
Property Value
Status
[ExcludeFromCodeCoverage]
public string Status { get; set; }
Property Value
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public virtual ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
OperationFailedAsync(FailedEventArgs)
protected Task OperationFailedAsync(BackgroundOperation.FailedEventArgs args)
Parameters
Returns
OperationFinishedAsync(FinishedEventArgs)
protected Task OperationFinishedAsync(BackgroundOperation.FinishedEventArgs args)
Parameters
Returns
PauseAsync(PauseArgs)
public virtual Task PauseAsync(BackgroundOperation.PauseArgs args)
Parameters
Returns
ResumeAsync(ResumeArgs)
public virtual Task ResumeAsync(BackgroundOperation.ResumeArgs args)
Parameters
Returns
StartAsync(StartArgs)
public abstract Task StartAsync(BackgroundOperation.StartArgs args)
Parameters
Returns
StopAsync(StopArgs)
public abstract Task StopAsync(BackgroundOperation.StopArgs args)