C# 클래스 SensorbergSDK.Internal.Services.StorageService

상속: IStorageService
파일 보기 프로젝트 열기: sensorberg-dev/windows10-sdk

공개 메소드들

메소드 설명
CleanupDatabase ( ) : System.Threading.Tasks.Task
FlushHistory ( ) : Task
GetActionsForForeground ( bool doNotDelete = false ) : Task>
GetDelayedActions ( ) : Task>
GetLastEventStateForBeacon ( string pid ) : Task
InitStorage ( ) : System.Threading.Tasks.Task
InvalidateLayout ( ) : System.Threading.Tasks.Task

Invalidates both the current and cached layout.

LoadLayoutFromLocalStorage ( ) : Task

Tries to load the layout from the local storage.

RetrieveLayout ( ) : Task
SaveBeaconEventState ( string pid, BeaconEventType enter ) : Task
SaveDelayedAction ( ResolvedAction action, DateTimeOffset dueTime, string beaconPid, BeaconEventType eventType, string location ) : Task
SaveHistoryAction ( string uuid, string beaconPid, DateTimeOffset now, BeaconEventType beaconEventType, string location ) : Task
SaveHistoryEvent ( string pid, DateTimeOffset timestamp, BeaconEventType eventType, string location ) : Task
SetDelayedActionAsExecuted ( string id ) : System.Threading.Tasks.Task
StorageService ( bool createdOnForeground = true ) : System
ValidateApiKey ( string apiKey ) : Task

Checks whether the given API key is valid or not.

비공개 메소드들

메소드 설명
ExecuteCall ( Func action ) : Task
SaveBeaconEventStateRetry ( string pid, BeaconEventType enter, int retry ) : Task
SaveDelayedActionsRetry ( ResolvedAction action, DateTimeOffset dueTime, string beaconPid, BeaconEventType eventTypeDetectedByDevice, string location, int retry ) : Task
SaveHistoryActionRetry ( string uuid, string beaconPid, DateTimeOffset now, BeaconEventType beaconEventType, string location, int retry ) : Task
SaveHistoryEventRetry ( string pid, DateTimeOffset timestamp, BeaconEventType eventType, string location, int retry ) : Task
SaveLayoutToLocalStorage ( string headers, string content, DateTimeOffset layoutRetrievedTime ) : System.Threading.Tasks.Task

Saves the strings that make up a layout.

StoreData ( string fileName, string data ) : Task

Saves the given data to the specified file.

WaitBackoff ( int currentRetries ) : System.Threading.Tasks.Task

메소드 상세

CleanupDatabase() 공개 메소드

public CleanupDatabase ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

FlushHistory() 공개 메소드

public FlushHistory ( ) : Task
리턴 Task

GetActionsForForeground() 공개 메소드

public GetActionsForForeground ( bool doNotDelete = false ) : Task>
doNotDelete bool
리턴 Task>

GetDelayedActions() 공개 메소드

public GetDelayedActions ( ) : Task>
리턴 Task>

GetLastEventStateForBeacon() 공개 메소드

public GetLastEventStateForBeacon ( string pid ) : Task
pid string
리턴 Task

InitStorage() 공개 메소드

public InitStorage ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

InvalidateLayout() 공개 메소드

Invalidates both the current and cached layout.
public InvalidateLayout ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

LoadLayoutFromLocalStorage() 공개 메소드

Tries to load the layout from the local storage.
public LoadLayoutFromLocalStorage ( ) : Task
리턴 Task

RetrieveLayout() 공개 메소드

public RetrieveLayout ( ) : Task
리턴 Task

SaveBeaconEventState() 공개 메소드

public SaveBeaconEventState ( string pid, BeaconEventType enter ) : Task
pid string
enter BeaconEventType
리턴 Task

SaveDelayedAction() 공개 메소드

public SaveDelayedAction ( ResolvedAction action, DateTimeOffset dueTime, string beaconPid, BeaconEventType eventType, string location ) : Task
action SensorbergSDK.Internal.Transport.ResolvedAction
dueTime DateTimeOffset
beaconPid string
eventType BeaconEventType
location string
리턴 Task

SaveHistoryAction() 공개 메소드

public SaveHistoryAction ( string uuid, string beaconPid, DateTimeOffset now, BeaconEventType beaconEventType, string location ) : Task
uuid string
beaconPid string
now DateTimeOffset
beaconEventType BeaconEventType
location string
리턴 Task

SaveHistoryEvent() 공개 메소드

public SaveHistoryEvent ( string pid, DateTimeOffset timestamp, BeaconEventType eventType, string location ) : Task
pid string
timestamp DateTimeOffset
eventType BeaconEventType
location string
리턴 Task

SetDelayedActionAsExecuted() 공개 메소드

public SetDelayedActionAsExecuted ( string id ) : System.Threading.Tasks.Task
id string
리턴 System.Threading.Tasks.Task

StorageService() 공개 메소드

public StorageService ( bool createdOnForeground = true ) : System
createdOnForeground bool
리턴 System

ValidateApiKey() 공개 메소드

Checks whether the given API key is valid or not.
public ValidateApiKey ( string apiKey ) : Task
apiKey string The API key to validate.
리턴 Task