LogRequest() public method

public LogRequest ( System.Guid sessionID, string userName ) : RequestData
sessionID System.Guid
userName string
return RequestData
コード例 #1
0
ファイル: ActivityTracking.cs プロジェクト: sponnusa/Master
        public static List <RequestData> logRandomRequestData(this ActivityTracking activityTracking, int count, bool createLargeRequest)
        {
            var requestsLogged = new List <RequestData>();

            for (var i = 0; i < count; i++)
            {
                var requestData = activityTracking.randomRequestData(createLargeRequest);
                requestsLogged.Add(activityTracking.LogRequest(requestData));
            }
            return(requestsLogged);
        }
コード例 #2
0
        private Guid _sessionID; // for unit tests

        #endregion Fields

        #region Constructors

        public TM_WebServices()
        {
            UnityInjection.resolve(this);
            try
            {
                javascriptProxy.adminSessionID = sessionID;
            }
            catch(Exception ex)	// this will happen on the unit tests
            {
                "TM_WebServices.ctor: {0}".error(ex.Message);
            }
            if (sessionID!= Guid.Empty)
                new UserRoleBaseSecurity().MapRolesBasedOnSessionGuid(sessionID);

            if (GetCurrentUserRoles().size()==0)
                if (TMConfig.Current.ShowContentToAnonymousUsers)
                    UserGroup.Reader.setThreadPrincipalWithRoles();
                else
                    UserGroup.Anonymous.setThreadPrincipalWithRoles();

            activityTracking = new ActivityTracking();
            activityTracking.LogRequest();
        }