Skip to main content

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.

public class ChatDiagnosticEventArgs : ChatWidgetEventArgs

Constructors​

Instance member ChatDiagnosticEventArgs(stage, inputFound, inputClassName, mentionClassAvailable, mentionHostFound, mentionInstanceFound, mentionUsersCount, mentionChar, requireLeadingSpace, minLength, instanceModuleName, details, data)​

Initializes a new instance of the ChatDiagnosticEventArgs class.

NameTypeDescription
stageStringThe name of the diagnostic stage.
inputFoundBooleantrue when the message input of the composer was found in the page.
inputClassNameStringThe CSS class names of the message input.
mentionClassAvailableBooleantrue when the Syncfusion ej.dropdowns.Mention class is loaded in the page.
mentionHostFoundBooleantrue when the wrapper created its own host element for the mention support.
mentionInstanceFoundBooleantrue when a Syncfusion mention instance is attached to the message input.
mentionUsersCountInt32The number of mention users loaded in the widget.
mentionCharStringThe mention trigger character in use.
requireLeadingSpaceBooleanThe requireLeadingSpace setting of the mention instance.
minLengthInt32The minLength setting of the mention instance.
instanceModuleNameStringThe module name of the mention instance.
detailsStringThe free-form description of the stage.
dataObjectThe 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​

Instance member 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.

Instance member InputClassName​

String: Gets the CSS class names of the message input of the composer, or an empty string when it was not found.

Instance member InputFound​

Boolean: Gets whether the message input of the composer was found in the page.

Instance member InstanceModuleName​

String: Gets the module name of the Syncfusion mention instance attached to the message input, or an empty string when there is none.

Instance member MentionChar​

String: Gets the mention trigger character in use in the browser.

Instance member MentionClassAvailable​

Boolean: Gets whether the Syncfusion ej.dropdowns.Mention class is loaded in the page.

Instance member MentionHostFound​

Boolean: Gets whether the client wrapper created its own host element for the mention support.

Instance member MentionInstanceFound​

Boolean: Gets whether a Syncfusion mention instance is attached to the message input.

Instance member MentionUsersCount​

Int32: Gets the number of mention users loaded in the widget.

Instance member MinLength​

Int32: Gets the minLength setting of the mention instance, or 0 when there is none.

Instance member RequireLeadingSpace​

Boolean: Gets the requireLeadingSpace setting of the mention instance, or false when there is none.

Instance member Stage​

String: Gets the name of the diagnostic stage, for example mention-manual or attachment-upload-success.