Class ProgressEventDispatchExtensions
- Namespace
- Bunit
- Assembly
- Bunit.Web.dll
Pointer event dispatch helper extension methods.
public static class ProgressEventDispatchExtensions
- Inheritance
-
ProgressEventDispatchExtensions
- Inherited Members
Methods
Abort(IElement, ProgressEventArgs)
Raises the @onabort event on element, passing the provided eventArgs
to the event handler.
public static void Abort(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
Abort(IElement, bool, long, long, string?)
Raises the @onabort event on element, passing the provided
properties to the event handler via a ProgressEventArgs object.
public static void Abort(this IElement element, bool lengthComputable = false, long loaded = 0, long total = 0, string? type = null)
Parameters
elementIElementThe element to raise the event on.
lengthComputableboolWhether or not the total size of the transfer is known.
loadedlongThe number of bytes transferred since the beginning of the operation. This doesn't include headers and other overhead, but only the content itself.
totallongThe total number of bytes of content that will be transferred during the operation. If the total size is unknown, this value is zero.
typestringGets or sets the type of the event.
AbortAsync(IElement, ProgressEventArgs)
Raises the @onabort event on element, passing the provided eventArgs
to the event handler.
public static Task AbortAsync(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
Returns
- Task
A task that completes when the event handler is done.
Error(IElement, ProgressEventArgs)
Raises the @onerror event on element, passing the provided eventArgs
to the event handler.
public static void Error(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
Error(IElement, bool, long, long, string?)
Raises the @onerror event on element, passing the provided
properties to the event handler via a ProgressEventArgs object.
public static void Error(this IElement element, bool lengthComputable = false, long loaded = 0, long total = 0, string? type = null)
Parameters
elementIElementThe element to raise the event on.
lengthComputableboolWhether or not the total size of the transfer is known.
loadedlongThe number of bytes transferred since the beginning of the operation. This doesn't include headers and other overhead, but only the content itself.
totallongThe total number of bytes of content that will be transferred during the operation. If the total size is unknown, this value is zero.
typestringGets or sets the type of the event.
ErrorAsync(IElement, ProgressEventArgs)
Raises the @onerror event on element, passing the provided eventArgs
to the event handler.
public static Task ErrorAsync(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
Returns
- Task
A task that completes when the event handler is done.
Load(IElement, ProgressEventArgs)
Raises the @onload event on element, passing the provided eventArgs
to the event handler.
public static void Load(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
Load(IElement, bool, long, long, string?)
Raises the @onload event on element, passing the provided
properties to the event handler via a ProgressEventArgs object.
public static void Load(this IElement element, bool lengthComputable = false, long loaded = 0, long total = 0, string? type = null)
Parameters
elementIElementThe element to raise the event on.
lengthComputableboolWhether or not the total size of the transfer is known.
loadedlongThe number of bytes transferred since the beginning of the operation. This doesn't include headers and other overhead, but only the content itself.
totallongThe total number of bytes of content that will be transferred during the operation. If the total size is unknown, this value is zero.
typestringGets or sets the type of the event.
LoadAsync(IElement, ProgressEventArgs)
Raises the @onload event on element, passing the provided eventArgs
to the event handler.
public static Task LoadAsync(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
Returns
- Task
A task that completes when the event handler is done.
LoadEnd(IElement, ProgressEventArgs)
Raises the @onloadend event on element, passing the provided eventArgs
to the event handler.
public static void LoadEnd(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
LoadEnd(IElement, bool, long, long, string?)
Raises the @onloadend event on element, passing the provided
properties to the event handler via a ProgressEventArgs object.
public static void LoadEnd(this IElement element, bool lengthComputable = false, long loaded = 0, long total = 0, string? type = null)
Parameters
elementIElementThe element to raise the event on.
lengthComputableboolWhether or not the total size of the transfer is known.
loadedlongThe number of bytes transferred since the beginning of the operation. This doesn't include headers and other overhead, but only the content itself.
totallongThe total number of bytes of content that will be transferred during the operation. If the total size is unknown, this value is zero.
typestringGets or sets the type of the event.
LoadEndAsync(IElement, ProgressEventArgs)
Raises the @onloadend event on element, passing the provided eventArgs
to the event handler.
public static Task LoadEndAsync(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
Returns
- Task
A task that completes when the event handler is done.
LoadStart(IElement, ProgressEventArgs)
Raises the @onloadstart event on element, passing the provided eventArgs
to the event handler.
public static void LoadStart(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
LoadStart(IElement, bool, long, long, string?)
Raises the @onloadstart event on element, passing the provided
properties to the event handler via a ProgressEventArgs object.
public static void LoadStart(this IElement element, bool lengthComputable = false, long loaded = 0, long total = 0, string? type = null)
Parameters
elementIElementThe element to raise the event on.
lengthComputableboolWhether or not the total size of the transfer is known.
loadedlongThe number of bytes transferred since the beginning of the operation. This doesn't include headers and other overhead, but only the content itself.
totallongThe total number of bytes of content that will be transferred during the operation. If the total size is unknown, this value is zero.
typestringGets or sets the type of the event.
LoadStartAsync(IElement, ProgressEventArgs)
Raises the @onloadstart event on element, passing the provided eventArgs
to the event handler.
public static Task LoadStartAsync(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
Returns
- Task
A task that completes when the event handler is done.
Progress(IElement, ProgressEventArgs)
Raises the @onprogress event on element, passing the provided eventArgs
to the event handler.
public static void Progress(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
Progress(IElement, bool, long, long, string?)
Raises the @onprogress event on element, passing the provided
properties to the event handler via a ProgressEventArgs object.
public static void Progress(this IElement element, bool lengthComputable = false, long loaded = 0, long total = 0, string? type = null)
Parameters
elementIElementThe element to raise the event on.
lengthComputableboolWhether or not the total size of the transfer is known.
loadedlongThe number of bytes transferred since the beginning of the operation. This doesn't include headers and other overhead, but only the content itself.
totallongThe total number of bytes of content that will be transferred during the operation. If the total size is unknown, this value is zero.
typestringGets or sets the type of the event.
ProgressAsync(IElement, ProgressEventArgs)
Raises the @onprogress event on element, passing the provided eventArgs
to the event handler.
public static Task ProgressAsync(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
Returns
- Task
A task that completes when the event handler is done.
Timeout(IElement, ProgressEventArgs)
Raises the @ontimeout event on element, passing the provided eventArgs
to the event handler.
public static void Timeout(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
Timeout(IElement, bool, long, long, string?)
Raises the @ontimeout event on element, passing the provided
properties to the event handler via a ProgressEventArgs object.
public static void Timeout(this IElement element, bool lengthComputable = false, long loaded = 0, long total = 0, string? type = null)
Parameters
elementIElementThe element to raise the event on.
lengthComputableboolWhether or not the total size of the transfer is known.
loadedlongThe number of bytes transferred since the beginning of the operation. This doesn't include headers and other overhead, but only the content itself.
totallongThe total number of bytes of content that will be transferred during the operation. If the total size is unknown, this value is zero.
typestringGets or sets the type of the event.
TimeoutAsync(IElement, ProgressEventArgs)
Raises the @ontimeout event on element, passing the provided eventArgs
to the event handler.
public static Task TimeoutAsync(this IElement element, ProgressEventArgs eventArgs)
Parameters
elementIElementThe element to raise the event on.
eventArgsProgressEventArgsThe event arguments to pass to the event handler.
Returns
- Task
A task that completes when the event handler is done.