Amnesia.Session.ResetServer C# (CSharp) Method

ResetServer() public static method

Ensures that there is not an open session. Typically sessions should be ended by calling Dispose() but this can be used at the very start of a test to ensure that the system is in a known state.
public static ResetServer ( string serviceUrl, ILog log ) : void
serviceUrl string
log ILog
return void
        public static void ResetServer(string serviceUrl, ILog log)
        {
            var response = (new Handler.EndSessionRequest()).Send(serviceUrl + Amnesia.Settings.Current.HandlerPath, new TimeSpan(0, 0, 20));

            if (log != null)
                LogResponse(response, log);
        }