Skip to main content

<a id=“SuperOffice_WebApi_ProgressListener”></a> 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

<a id=“SuperOffice_WebApi_ProgressListener__ctor”></a> ProgressListener()

<a id=“SuperOffice_WebApi_ProgressListener__ctor_System_Action_System_String_System_Single__System_Action_System_String_System_Exception__”></a> ProgressListener(Action<string, float&gt;, Action<string, Exception&gt;)

Parameters

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

Properties

<a id=“SuperOffice_WebApi_ProgressListener_OnErrorDelegate”></a> OnErrorDelegate

Triggered if request fails.

Property Value

Action<string, Exception&gt;

<a id=“SuperOffice_WebApi_ProgressListener_OnProgressDelegate”></a> OnProgressDelegate

Triggered when request has made progress.

Property Value

Action<string, float&gt;

Methods

<a id=“SuperOffice_WebApi_ProgressListener_OnError_System_String_System_Exception_”></a> 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>.

<a id=“SuperOffice_WebApi_ProgressListener_OnProgress_System_String_System_Single_”></a> 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