internal void ClearSession(HttpWebRequest httpWebRequest) { PrepareState(httpWebRequest); ISessionAuthenticationModule myModule = Module as ISessionAuthenticationModule; Module = null; if (myModule != null) { try { myModule.ClearSession(httpWebRequest); } catch (Exception exception) { if (NclUtilities.IsFatal(exception)) { throw; } GlobalLog.Print("AuthenticationState#" + ValidationHelper.HashString(this) + "::ClearSession() " + myModule.ToString() + ".Update() caught exception:" + exception.Message); } catch { GlobalLog.Print("AuthenticationState#" + ValidationHelper.HashString(this) + "::ClearSession() " + myModule.ToString() + ".Update() caught exception: Non-CLS Compliant Exception"); } } }
internal void ClearSession(HttpWebRequest httpWebRequest) { this.PrepareState(httpWebRequest); ISessionAuthenticationModule module = this.Module as ISessionAuthenticationModule; this.Module = null; if (module != null) { try { module.ClearSession(httpWebRequest); } catch (Exception exception) { if (NclUtilities.IsFatal(exception)) { throw; } } } }