Table of Contents

Delegate DownloadFileAsyncCallback

Namespace
TheArtOfDev.HtmlRenderer.Core.Handlers
Assembly
StockSharp.Xaml.dll

On download file async complete, success or fail.

public delegate void DownloadFileAsyncCallback(Uri imageUri, byte[] body, Exception error, bool canceled)

Parameters

imageUri Uri

The online image uri

body byte[]

the path to the downloaded file

error Exception

the error if download failed

canceled bool

is the file download request was canceled

Extension Methods

Constructors

DownloadFileAsyncCallback(object, IntPtr)

public DownloadFileAsyncCallback(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(Uri, byte[], Exception, bool, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(Uri imageUri, byte[] body, Exception error, bool canceled, AsyncCallback callback, object @object)

Parameters

imageUri Uri
body byte[]
error Exception
canceled bool
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(Uri, byte[], Exception, bool)

public virtual void Invoke(Uri imageUri, byte[] body, Exception error, bool canceled)

Parameters

imageUri Uri
body byte[]
error Exception
canceled bool