C# Class SensorbergSDK.Internal.SdkEngine

Inheritance: IDisposable
Mostrar archivo Open project: sensorberg-dev/windows10-sdk Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
FlushHistory ( ) : Task
InitializeAsync ( ) : Task

Initializes the SDK engine.

ProcessDelayedActionsAsync ( ) : Task

Handles delayed beacon actions resolved earlier.

ResolveBeaconAction ( BeaconEventArgs eventArgs ) : Task

Tries to find a beacon action based on the given beacon event arguments.

SdkEngine ( bool createdOnForeground ) : System

Creates a new Engine object.

UpdateCacheAsync ( bool forceUpdate ) : Task

Updates the layout cache.

Private Methods

Method Description
CleanDatabaseAsync ( ) : Task

Cleans old entries from database. Called when the UI application is started.

ExecuteActionAsync ( ResolvedAction resolvedAction, string beaconPid, BeaconEventType beaconEventType, string location ) : Task

Executes the given action, stores the event in event history and notifies the listeners.

OnBeaconActionResolvedAsync ( object sender, ResolvedActionsEventArgs e ) : void
OnFlushHistoryTimerTimeoutAsync ( object state ) : void
OnLayoutUpdatedAsync ( object state ) : void
OnProcessDelayedActionsTimerTimeoutAsync ( object state ) : void
OnResolverFailedToResolveActions ( object sender, string e ) : void

This method simply forwards the event to listeners.

OnSettingsUpdated ( object sender, SettingsEventArgs settingsEventArgs ) : void
OnUpdateVisibilityTimerTimeout ( object state ) : void
ResetProcessDelayedActionsTimer ( DateTimeOffset nextDueTime ) : void

(Re)sets the process delayed actions timer to trigger based on the given due time.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FlushHistory() public method

public FlushHistory ( ) : Task
return Task

InitializeAsync() public method

Initializes the SDK engine.
public InitializeAsync ( ) : Task
return Task

ProcessDelayedActionsAsync() public method

Handles delayed beacon actions resolved earlier.
public ProcessDelayedActionsAsync ( ) : Task
return Task

ResolveBeaconAction() public method

Tries to find a beacon action based on the given beacon event arguments.
public ResolveBeaconAction ( BeaconEventArgs eventArgs ) : Task
eventArgs BeaconEventArgs The arguments of a beacon event.
return Task

SdkEngine() public method

Creates a new Engine object.
public SdkEngine ( bool createdOnForeground ) : System
createdOnForeground bool bool for indication if the engine works on foreground.
return System

UpdateCacheAsync() public method

Updates the layout cache.
public UpdateCacheAsync ( bool forceUpdate ) : Task
forceUpdate bool
return Task