Session Storage Provider

ISessionProviderService in assembly SanteDB.Core.Api version 3.0.1980.0

Summary

Represents a service which is responsible for the storage and retrieval of sessions

Events

Event
Type
Description

Established

EventHandler<SessionEstablishedEventArgs>

Fired when the session provider service has established

Abandoned

EventHandler<SessionEstablishedEventArgs>

Fired when the session provider service has ended by the user's decision

Extended

EventHandler<SessionEstablishedEventArgs>

Fired when the session provider service has been extended

Operations

Operation
Response/Return
Input/Parameter
Description

Establish

ISession

IPrincipal principal String remoteEp Boolean isOverride String purpose String[] scope String lang

Establishes a session for the specified principal

Get

ISession

Byte[] sessionId Boolean allowExpired

Authenticates the session identifier as evidence of session

GetUserSessions

ISession[]

Guid userKey

Gets active sessions for the user.

Extend

ISession

Byte[] refreshToken

Extend the session with the specified refresh token

Abandon

void

ISession session

Abandons the session

GetActiveSessions

ISession[]

none

TODO

Implementations

MemorySessionManagerService - (SanteDB.Caching.Memory)

Represents a ISessionProviderService which uses RAM caching

Service Registration

BridgedSessionManager - (SanteDB.Client)

Represents a bridged session provider manager

Description

This class is responsible for managing local sessions (via a synchronized pattern) as well as upstream sessions which need to interact with the upstream, as well as transitioning between the two.

Service Registration

AdoSessionProvider - (SanteDB.Persistence.Data)

An identity provider service that uses the ADO session table

Service Registration

Example Implementation

References

Last updated

Was this helpful?