selectable persistence providers

This commit is contained in:
Eugene Pankov
2017-07-31 13:52:32 +02:00
parent 514fdbfb6a
commit 1c62f3074c
8 changed files with 70 additions and 46 deletions

View File

@@ -28,6 +28,10 @@ export interface SessionOptions {
}
export abstract class SessionPersistenceProvider {
abstract id: string
abstract displayName: string
abstract isAvailable (): boolean
abstract async attachSession (recoveryId: any): Promise<SessionOptions>
abstract async startSession (options: SessionOptions): Promise<any>
abstract async terminateSession (recoveryId: string): Promise<void>