WriteOption Event
Fires when the client sends in a write option request.
Syntax
public event OnWriteOptionHandler OnWriteOption; public delegate void OnWriteOptionHandler(object sender, DcauthwebserverWriteOptionEventArgs e); public class DcauthwebserverWriteOptionEventArgs : EventArgs { public long ConnectionId { get; } public string Name { get; } public string Value { get; } }
Public Event OnWriteOption As OnWriteOptionHandler Public Delegate Sub OnWriteOptionHandler(sender As Object, e As DcauthwebserverWriteOptionEventArgs) Public Class DcauthwebserverWriteOptionEventArgs Inherits EventArgs Public ReadOnly Property ConnectionId As Long Public ReadOnly Property Name As String Public ReadOnly Property Value As String End Class
Remarks
Subscribe to this event to respond to the clients' write option requests. The handler should save the Value of the Name option to a local configuration database.