Class AsyncControlBase
A base class for the implementation of asynchronous processing without result values.
Implements
Namespace: GoogleSheetFetcher.Editor.AsyncControls
Assembly: GoogleSheetFetcher.Editor.dll
Syntax
public abstract class AsyncControlBase : IAsyncControl
Properties
| Improve this Doc View SourceCancellationToken
Declaration
protected CancellationToken CancellationToken { get; }
Property Value
| Type | Description |
|---|---|
| CancellationToken |
Exception
The exception when the processing failure.
Declaration
public Exception Exception { get; }
Property Value
| Type | Description |
|---|---|
| Exception |
IsDone
Whether or not the process completed.
Declaration
public bool IsDone { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Progress
Declaration
protected virtual float Progress { get; }
Property Value
| Type | Description |
|---|---|
| Single |
Status
The state of asynchronous processing.
Declaration
public AsyncControlStatus Status { get; }
Property Value
| Type | Description |
|---|---|
| AsyncControlStatus |
Task
Task
Declaration
public Task Task { get; }
Property Value
| Type | Description |
|---|---|
| Task |
Methods
| Improve this Doc View SourceCancel()
Cancel processing.
Declaration
public void Cancel()
Failed(Exception)
Declaration
protected void Failed(Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | exception |
GetProgress()
Get the progress of the process.
Declaration
public float GetProgress()
Returns
| Type | Description |
|---|---|
| Single |
OnStart()
Declaration
protected abstract void OnStart()
Start()
Start processing.
Declaration
public void Start()
Succeeded()
Declaration
protected void Succeeded()
Events
| Improve this Doc View SourceCompleted
The event that is called at the end of the process.
Declaration
public event Action Completed
Event Type
| Type | Description |
|---|---|
| Action |