Exemplo n.º 1
0
        /// <summary>
        /// Gets the identifier of the session that this application is part of.
        ///
        /// A session is group of applications that were launched and logically belong together.
        /// For example, when starting a new session in UFE that launches a game on multiple devices,
        /// all engine instances running on those devices will have the same session identifier.
        /// Conversely, sessions that were launched separately will have different session identifiers.
        ///
        /// @see GetInstanceId
        /// </summary>
        /// <returns>Session identifier, or an invalid GUID if there is no local instance.</returns>
        public static Guid GetSessionId()
        {
            Guid result;

            Native_FApp.GetSessionId(out result);
            return(result);
        }