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
ProgressListener()
ProgressListener(Action<string, float>, Action<string, Exception>)
Parameters
onProgress Action<string, float>
onError Action<string, Exception>
Properties
OnErrorDelegate
Triggered if request fails.Property Value
Action<string, Exception>OnProgressDelegate
Triggered when request has made progress.Property Value
Action<string, float>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