Пример #1
0
        public static VisitorInfo FromVisitor(Visitor v)
        {
            var info = new VisitorInfo {
                SegmentName = v.Segment != null ? v.Segment.Name : null
            };

            info.SetValuesFromObject(v);
            return(info);
        }
Пример #2
0
        public static RequestInfo FromVisit(Request request)
        {
            var info = new RequestInfo();

            info.SetValuesFromObject(request);
            info.EndVisit = request.EndVisit;
            info.Visit    = VisitInfo.FromVisit(request.Visit);
            info.Visitor  = VisitorInfo.FromVisitor(request.Visit.Visitor);

            return(info);
        }