Amnesia.Session.RaiseAfterSessionEnded C# (CSharp) Method

RaiseAfterSessionEnded() static private method

Called by a single thread when the session has ended
static private RaiseAfterSessionEnded ( ) : void
return void
        internal static void RaiseAfterSessionEnded()
        {
            if (afterSessionEnded != null)
                afterSessionEnded(null, EventArgs.Empty);
        }

Usage Example

Beispiel #1
0
            /// <summary>
            /// Callers must handle concurrency control
            /// </summary>
            internal static void EndSession(ILog log)
            {
                // End the transaction
                Rollback(log);

                // Raise event to notify application session has completed
                Session.RaiseAfterSessionEnded();
            }