Skip to main content

Class ProgressListener

Namespace: SuperOffice.WebApi
Assembly: SuperOffice.WebApi.dll
Default ProgressListener implementation with delegates for event callbacks.

Inheritance

objectProgressListener

Implements

IProgressListener

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Constructors

ProgressListener()

ProgressListener(Action<string, float&gt;, Action<string, Exception&gt;)

Parameters

onProgress Action<string, float&gt; onError Action<string, Exception&gt;

Properties

OnErrorDelegate

Triggered if request fails.

Property Value

Action<string, Exception&gt;

OnProgressDelegate

Triggered when request has made progress.

Property Value

Action<string, float&gt;

Methods

OnError(string, Exception)

Called when request fails.

Parameters

request string URL being loaded errorMessage Exception Exception that is being thrown. Probably a <xref href=“SuperOffice.WebApi.Authorization.Exceptions.SuperOfficeWebApiException” data-throw-if-not-resolved=“false”></xref>.

OnProgress(string, float)

Called during upload/download, and at end to indicate completion.

Parameters

request string URL for the request progress float Complete progress. 0.0 not started, 1.0 finished