How can I Get HostedApplication over HostedApplicationId (Guid)

May 9, 2013 at 8:19 AM
I need to get Hosted Application by HostedApplicationId (Guid). Is it posible to get?
May 13, 2013 at 8:17 AM
hi,

in a hosted control you can get all active hosted applications out of the session manager.
private AgentDesktopSessions _localSessionManager;

....

/// <summary>
        /// Configure Session Manager
        /// </summary>
        public override object SessionManager
        {
            set
            {
                if (_localSessionManager == null)
                {
                    _localSessionManager = (AgentDesktopSessions) value;
                    base.SessionManager = value;
                }
            }
        }

....

IHostedApplication application =
                    _localSessionManager.ActiveSession.AppHost.GetApplication(hostedApplicationId);