[]
        
(Showing Draft Content)

GrapeCity.Documents.Html.WebSocketFactory

Delegate WebSocketFactory

Namespace
GrapeCity.Documents.Html
Assembly
GcDocs.Html.dll

Delegate for creation of System.Net.WebSockets.WebSocket instances.

public delegate Task<WebSocket> WebSocketFactory(Uri url)

Parameters

url System.Uri

A browser WebSocket endpoint to connect to.

Returns

System.Threading.Tasks.Task<TResult><WebSocket>

A System.Threading.Tasks.Task<TResult> instance for the asynchronous socket create and connect operation.

Constructors

WebSocketFactory(object, IntPtr)

public WebSocketFactory(object @object, IntPtr method)

Parameters

object object
method System.IntPtr

Methods

BeginInvoke(Uri, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(Uri url, AsyncCallback callback, object @object)

Parameters

url System.Uri
callback System.AsyncCallback
object object

Returns

System.IAsyncResult

EndInvoke(IAsyncResult)

public virtual Task<WebSocket> EndInvoke(IAsyncResult result)

Parameters

result System.IAsyncResult

Returns

System.Threading.Tasks.Task<TResult><WebSocket>

Invoke(Uri)

public virtual Task<WebSocket> Invoke(Uri url)

Parameters

url System.Uri

Returns

System.Threading.Tasks.Task<TResult><WebSocket>