public void SetSessionStop(int UserID, string SessionID)
        {
            SP_ADD_SessionStart SS = new SP_ADD_SessionStart();

            SS.pUserID    = UserID;
            SS.pSessionID = SessionID;
            ServiceRepository   serviceObj = new ServiceRepository();
            HttpResponseMessage response   = serviceObj.PostResponse("api/BlotterLogin/SessionStop", SS);

            response.EnsureSuccessStatusCode();
        }
        public void SetSessionStart(int UserID, string SessionID, string IP, string LoginGUID, DateTime LoginTime, DateTime Expires)
        {
            SP_ADD_SessionStart SS = new SP_ADD_SessionStart();

            SS.pUserID    = UserID;
            SS.pSessionID = SessionID;
            SS.pIP        = IP;
            SS.pLoginGUID = LoginGUID;
            SS.pLoginTime = LoginTime;
            SS.pExpires   = Expires;
            ServiceRepository   serviceObj = new ServiceRepository();
            HttpResponseMessage response   = serviceObj.PostResponse("api/BlotterLogin/SessionStart", SS);

            response.EnsureSuccessStatusCode();
        }
Example #3
0
        public static void ActivityMonitor(int UserID, string SessionID, string IP, string LoginGUID, string Data, string Activity, string URL)
        {
            SP_ADD_SessionStart SS = new SP_ADD_SessionStart();

            SS.pUserID    = UserID;
            SS.pSessionID = SessionID;
            SS.pIP        = IP;
            SS.pLoginGUID = LoginGUID;
            SS.pData      = Data;
            SS.pActivity  = Activity;
            SS.pURL       = URL;
            ServiceRepository   serviceObj = new ServiceRepository();
            HttpResponseMessage response   = serviceObj.PostResponse("api/BlotterLogin/ActivityMonitor", SS);

            response.EnsureSuccessStatusCode();
        }
 public void SessionStop(SP_ADD_SessionStart SS)
 {
     DAL.SessionStop(SS.pSessionID, SS.pUserID);
 }
 public void ActivityMonitor(SP_ADD_SessionStart SS)
 {
     DAL.ActivityMonitor(SS.pSessionID, SS.pUserID, SS.pIP, SS.pLoginGUID, SS.pData, SS.pActivity, SS.pURL);
 }
 public void SessionStart(SP_ADD_SessionStart SS)
 {
     DAL.SessionStart(SS.pSessionID, SS.pUserID, SS.pIP, SS.pLoginGUID, SS.pLoginTime, SS.pExpires);
 }