/// <returns> The current <seealso cref="CustomTabsSession"/> object. </returns> public static /*mc++ @Nullable*/ CustomTabsSession GetCurrentSession() { CustomTabsSession cts = null; sCurrentSession.TryGetTarget(out cts); return(sCurrentSession == null ? null : cts); }
/// <summary> /// Sets the current session to the given one. </summary> /// <param name="session"> The current session. </param> public static void SetCurrentSession(CustomTabsSession session) { sCurrentSession = new System.WeakReference <CustomTabsSession>(session); }