ReadOption Event
Fires when the client sends in a read option request.
Syntax
public event OnReadOptionHandler OnReadOption; public delegate void OnReadOptionHandler(object sender, DcauthwebserverReadOptionEventArgs e); public class DcauthwebserverReadOptionEventArgs : EventArgs { public long ConnectionId { get; } public string Name { get; } public string Value { get; set; } public bool Success { get; set; } }
Public Event OnReadOption As OnReadOptionHandler Public Delegate Sub OnReadOptionHandler(sender As Object, e As DcauthwebserverReadOptionEventArgs) Public Class DcauthwebserverReadOptionEventArgs Inherits EventArgs Public ReadOnly Property ConnectionId As Long Public ReadOnly Property Name As String Public Property Value As String Public Property Success As Boolean End Class
Remarks
Subscribe to this event to respond to the clients' read option requests. The handler should retrieve the value of the requested option from a local configuration setting and assign it to the Value parameter.