Discuss this help topic in SecureBlackbox Forum

TElSimpleOAuth2Client.OnWait

TElSimpleOAuth2Client     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired periodically to show how much waiting time is left.

Declaration

[C#]
    event TSBSimpleOAuth2WaitEvent OnWait;
    delegate void TSBSimpleOAuth2WaitEvent(Object Sender, uint TimeLeft, ref bool Stop);

[VB.NET]
    Event OnWait As TSBSimpleOAuth2WaitEvent
    Delegate Sub TSBSimpleOAuth2WaitEvent(ByVal Sender As Object, ByVal TimeLeft As UInt32, ByRef Stop As Boolean)

[Pascal]
    property OnWait : TSBSimpleOAuth2WaitEvent;
    TSBSimpleOAuth2WaitEvent = procedure(Sender : TObject; TimeLeft : Cardinal; var Stop : boolean) of object;

[C++]
    void get_OnWait(TSBSimpleOAuth2WaitEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnWait(TSBSimpleOAuth2WaitEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSimpleOAuth2WaitEvent)(void * _ObjectData, TObjectHandle Sender, uint32_t TimeLeft, int8_t &Stop);

[PHP]
    TSBSimpleOAuth2WaitEvent|callable|NULL get_OnWait()
    void set_OnWait(TSBSimpleOAuth2WaitEvent|callable|NULL $Value)
    callable TSBSimpleOAuth2WaitEvent(TObject $Sender, integer $TimeLeft, bool &$Stop)

[Java]
    TSBSimpleOAuth2WaitEvent getOnWait();
    void setOnWait(TSBSimpleOAuth2WaitEvent Value);
    TSBSimpleOAuth2WaitEvent.Callback OnWait = new TSBSimpleOAuth2WaitEvent.Callback() {
        public void TSBSimpleOAuth2WaitEventCallback(TObject Sender, int TimeLeft, TSBBoolean Stop) {
            //...
        }
    }

Parameters

  • TimeLeft - the time left to timeout (in milliseconds).
  • Stop - set this parameter to true to stop waiting (results in authorization failure).

Description

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.

See also:     Authorize     Timeout    

Discuss this help topic in SecureBlackbox Forum