Wait Event
Fired periodically to show how much waiting time is left.
Syntax
public event OnWaitHandler OnWait; public delegate void OnWaitHandler(object sender, OauthclientWaitEventArgs e); public class OauthclientWaitEventArgs : EventArgs { public int TimeLeft { get; } public bool Stop { get; set; } }
Public Event OnWait As OnWaitHandler Public Delegate Sub OnWaitHandler(sender As Object, e As OauthclientWaitEventArgs) Public Class OauthclientWaitEventArgs Inherits EventArgs Public ReadOnly Property TimeLeft As Integer Public Property Stop As Boolean End Class
Remarks
This event is fired after authorization is started, to show how much time is left to wait for server's response. Waiting can be cancelled by setting the Stop parameter to true, which will result in authorization failure.