Beispiel #1
0
        public bool EndApplicationSession(Guid applicationKey, Int64 applicationSessionId, DateTime lastActivity, DateTime endTime)
        {
            AuthHeaderValidation.CreateSoapHeaderLog("EndApplicationSession", Credentials.ToolId, Credentials.ApplicationKey, null, null, 10, null);

            WebServiceDAL.UpdateApplicationsSession(applicationKey, applicationSessionId, lastActivity, endTime);

            return(true);
        }
Beispiel #2
0
        public bool UpdateApplicationSessionUserId(Guid applicationKey, Int64 applicationSessionId, bool isPublicComputer)
        {
            try
            {
                Guid userId = AuthenticateClient("UpdateApplicationSessionUserId");
                WebServiceDAL.UpdateApplicationsSession(applicationKey, applicationSessionId, userId, isPublicComputer);
            }
            catch (Exception ex)
            {
                // Log it
                WebServiceDAL.StoreException("Webservice", "UpdateApplicationSessionUserId", ex);
                return(false);
            }

            return(true);
        }