C# Class Tmds.SockJS.SessionManager

Show file Open project: tmds/Tmds.SockJS Class Usage Examples

Public Methods

Method Description
CalculateETag ( string input ) : string
Invoke ( HttpContext context ) : Task
SessionManager ( PathString prefix, RequestDelegate next, SockJSOptions options ) : System

Private Methods

Method Description
AddCachingHeader ( HttpContext context ) : void
AddCorsHeader ( HttpContext context ) : void
AddNoCacheHeader ( HttpContext context ) : void
AddSessionCookie ( HttpContext context ) : void
ExposeAsync ( HttpContext context, string contentType, string content ) : Task
ExposeHtmlAsync ( HttpContext context, string content ) : Task
ExposeJsonAsync ( HttpContext context, string content ) : Task
ExposeNothingAsync ( ) : Task
ExposeTextAsync ( HttpContext context, string content ) : Task
GetOrCreateSession ( string sessionId, Receiver receiver ) : bool>.Tuple
GetSession ( string sessionId ) : Session
HandleEventSourceAsync ( HttpContext context, string sessionId ) : Task
HandleGreetingAsync ( HttpContext context, string session ) : Task
HandleHtmlFileAsync ( HttpContext context, string sessionId ) : Task
HandleIFrameAsync ( HttpContext context, string session ) : Task
HandleInfoAsync ( HttpContext context, string session ) : Task
HandleJsonpAsync ( HttpContext context, string sessionId ) : Task
HandleJsonpSendAsync ( HttpContext context, string sessionId ) : Task
HandleNoWebSocketAsync ( HttpContext context, string sessionId ) : Task
HandleNotAllowedAsync ( HttpContext context, string methods ) : Task
HandleNotFoundAsync ( HttpContext context ) : Task
HandleOptionsGetResourceAsync ( HttpContext context, string session ) : Task
HandleOptionsPostResourceAsync ( HttpContext context, string session ) : Task
HandleReceiverAsync ( string sessionId, Receiver receiver ) : Task
HandleSockJSWebSocketAsync ( HttpContext context, string sessionId ) : Task
HandleWebSocketAsync ( HttpContext context, string sessionId ) : Task
HandleXhrAsync ( HttpContext context, string sessionId ) : Task
HandleXhrSendAsync ( HttpContext context, string sessionId ) : Task
HandleXhrStreamingAsync ( HttpContext context, string sessionId ) : Task
Matches ( Match match, Route route ) : bool
OnSessionTimeout ( object state, CancellableTimer timer ) : void
SessionManager ( ) : System

Method Details

CalculateETag() public method

public CalculateETag ( string input ) : string
input string
return string

Invoke() public method

public Invoke ( HttpContext context ) : Task
context HttpContext
return Task

SessionManager() public method

public SessionManager ( PathString prefix, RequestDelegate next, SockJSOptions options ) : System
prefix PathString
next RequestDelegate
options SockJSOptions
return System