\r\n

51Degrees Device Detection .NET  4.4

Device detection services for 51Degrees Pipeline

FiftyOne.DeviceDetection.Examples.OnPremise.UpdateDataFile.CompletionListener Class Reference

Detailed Description

Helper class used to wait for data updates to complete and return the status of the update.

Public Member Functions

 CompletionListener (IDataUpdateService dataUpdateService)
void  WaitForComplete (TimeSpan timeout)
Blocks the calling thread until the data update is complete. More...
void  Reset ()
Clear the 'complete' flag. More...

Properties

DataUpdateCompleteArgs  Result [get]
bool  Complete [get]

Member Function Documentation

◆ WaitForComplete()

void FiftyOne.DeviceDetection.Examples.OnPremise.UpdateDataFile.CompletionListener.WaitForComplete ( TimeSpan   timeout )

Blocks the calling thread until the data update is complete.

Note - an update may have occurred before calling this method. Call Reset to wait for the next update.

See also
Reset
Parameters
timeout - The maximum time to wait.
Exceptions
TimeoutException - Thrown if the update does not complete before the timeout expires.
On This Page