Amnesia.Session.PrepareForDispose C# (CSharp) Method

PrepareForDispose() public method

public PrepareForDispose ( ) : void
return void
        public void PrepareForDispose()
        {
            // Notify the server that the session will be ended momentarily. This will block all non-Amnesia
            // requests and cause the server to ignore async rollback notifications.
            var response = (new Handler.PrepareToEndSessionRequest()).Send(serviceUrl);
        }