<a id=“SuperOffice_WebApi_ProgressListener”></a> Class ProgressListener
Namespace: SuperOffice.WebApiAssembly: SuperOffice.WebApi.dll Default ProgressListener implementation with delegates for event callbacks.
Inheritance
object ← ProgressListenerImplements
IProgressListenerInherited 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>, Action<string, Exception>)
Parameters
onProgress Action<string, float>
onError Action<string, Exception>
Properties
<a id=“SuperOffice_WebApi_ProgressListener_OnErrorDelegate”></a> OnErrorDelegate
Triggered if request fails.Property Value
Action<string, Exception><a id=“SuperOffice_WebApi_ProgressListener_OnProgressDelegate”></a> OnProgressDelegate
Triggered when request has made progress.Property Value
Action<string, float>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