Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static class: RT.Servers.SessionExtensions

Summary

Provides extension methods for HTTP session handling.

Static methods

HttpResponse
EnableAutomatic<TSession>(this TSession session, HttpRequest req, Func<TSession, HttpResponse> handler)
Enables the use of sessions in an HTTP request handler. Use this if your session class implements ISessionEquatable<TSession>. (see also remarks)
HttpResponse
EnableManual<TSession>(this TSession session, HttpRequest req, Func<TSession, HttpResponse> handler)
Enables the use of sessions in an HTTP request handler. Use this if your session class does not implement ISessionEquatable<TSession>; your class will have to manually set Session.SessionModified to true before the request handler returns if any change was made to the session. (see also remarks)