ChatDiagnosticEventArgs
Namespace: Wisej.Web.Ext.Syncfusion2
Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)
Reports client-side diagnostics emitted by the chat wrapper while optional features are initializing.
- C#
- VB.NET
public class ChatDiagnosticEventArgs : ChatWidgetEventArgs
Public Class ChatDiagnosticEventArgs
Inherits ChatWidgetEventArgs
Constructors
ChatDiagnosticEventArgs(stage, inputFound, inputClassName, mentionClassAvailable, mentionHostFound, mentionInstanceFound, mentionUsersCount, mentionChar, requireLeadingSpace, minLength, instanceModuleName, details, data)
Initializes a new instance of the ChatDiagnosticEventArgs class.
| Name | Type | Description |
|---|---|---|
| stage | String | The name of the diagnostic stage. |
| inputFound | Boolean | true when the message input of the composer was found in the page. |
| inputClassName | String | The CSS class names of the message input. |
| mentionClassAvailable | Boolean | true when the Syncfusion ej.dropdowns.Mention class is loaded in the page. |
| mentionHostFound | Boolean | true when the wrapper created its own host element for the mention support. |
| mentionInstanceFound | Boolean | true when a Syncfusion mention instance is attached to the message input. |
| mentionUsersCount | Int32 | The number of mention users loaded in the widget. |
| mentionChar | String | The mention trigger character in use. |
| requireLeadingSpace | Boolean | The requireLeadingSpace setting of the mention instance. |
| minLength | Int32 | The minLength setting of the mention instance. |
| instanceModuleName | String | The module name of the mention instance. |
| details | String | The free-form description of the stage. |
| data | Object | The raw event data received from the browser, or null. |
The event name is always set to diagnostic. The null strings are stored as empty strings.
Example:
The following example, placed in a class derived from Chat, raises Diagnostic with a custom stage.
this.OnDiagnostic(new ChatDiagnosticEventArgs(
"server-check", true, "", false, false, false,
this.MentionUsers?.Length ?? 0, this.MentionTriggerChar, false, 0, "",
"Checked on the server.", null));
Properties
Details
String: Gets the free-form description of the stage.
The content depends on Stage: it is a list of name=value pairs describing, for example, the state of the composer, the mention popup, the attachments or the message toolbar. When a stage has no description of its own, the value describes the message input or reports that it was not found.
InputClassName
String: Gets the CSS class names of the message input of the composer, or an empty string when it was not found.
InputFound
Boolean: Gets whether the message input of the composer was found in the page.
InstanceModuleName
String: Gets the module name of the Syncfusion mention instance attached to the message input, or an empty string when there is none.
MentionChar
String: Gets the mention trigger character in use in the browser.
MentionClassAvailable
Boolean: Gets whether the Syncfusion ej.dropdowns.Mention class is loaded in the page.
MentionHostFound
Boolean: Gets whether the client wrapper created its own host element for the mention support.
MentionInstanceFound
Boolean: Gets whether a Syncfusion mention instance is attached to the message input.
MentionUsersCount
Int32: Gets the number of mention users loaded in the widget.
MinLength
Int32: Gets the minLength setting of the mention instance, or 0 when there is none.
RequireLeadingSpace
Boolean: Gets the requireLeadingSpace setting of the mention instance, or false when there is none.
Stage
String: Gets the name of the diagnostic stage, for example mention-manual or attachment-upload-success.