Пример #1
0
        /// <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);
        }
Пример #2
0
 /// <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);
 }