public void Trace(TrackingOptions options)
 {
     //System.Diagnostics.Trace.WriteLine(
     //    string.Format(
     //        "{0}: HttpResponse [{1}] \"{2}\" result {3}",
     //        this.RecordNumber,
     //        this.Activity != null ? this.Activity.Id : "null",
     //        this.Activity != null ? this.Activity.Name : "null",
     //        this.Result ?? "null"));
     //TrackingHelper.TraceInstance(options, TrackingOptions.Default, this.InstanceId, this.Annotations, null, null, this.Data, this.EventTime);
 }
 public void Trace(TrackingOptions options)
 {
     System.Diagnostics.Trace.WriteLine(
         string.Format(
             "{0}: HttpResponse [{1}] \"{2}\" result {3}",
             this.RecordNumber,
             this.Activity != null ? this.Activity.Id : "null",
             this.Activity != null ? this.Activity.Name : "null",
             this.Result ?? "null"));
     TrackingHelper.TraceInstance(options, this.InstanceId, this.Annotations, null, null, this.Data, this.EventTime);
 }
 public CampaignCreateOptions()
 {
     Authenticate = false;
     AutoFooter = false;
     InlineCss = false;
     GenerateText = false;
     AutoTweet = false;
     AutoFacebookPost = new List<string>();
     FacebookComments = true;
     Timewarp = false;
     Tracking = new TrackingOptions();
 }
Пример #4
0
        /// <summary>
        /// Create a segment based on two dirty points
        /// </summary>
        public Segment(Point begin, Point end, TrackingOptions options)
        {
            _options        = options;
            BeginTime       = begin.Time;
            BeginLatitude   = begin.Latitude;
            BeginLongitude  = begin.Longitude;
            EndTime         = end.Time;
            EndLatitude     = end.Latitude;
            EndLongitude    = end.Longitude;
            SatellitesCount = Math.Min(begin.SatellitesCount, end.SatellitesCount);

            IsBreak = Distance > _options.BreakDistance &&
                      Duration.TotalSeconds >= _options.BreakDuration;
        }
Пример #5
0
        /// <summary>
        /// Create segment based on manual values
        /// </summary>
        /// <summary>Because this segment created manually, it cannot be a break</summary>
        public Segment(DateTime beginTime, double beginLatitude, double beginLongitude
                       , DateTime endTime, double endLatitude, double endLongitude
                       , int satellitesCount, TrackingOptions options)
        {
            _options        = options;
            BeginTime       = beginTime;
            BeginLatitude   = beginLatitude;
            BeginLongitude  = beginLongitude;
            EndTime         = endTime;
            EndLatitude     = endLatitude;
            EndLongitude    = endLongitude;
            SatellitesCount = satellitesCount;

            IsBreak = false;
        }
Пример #6
0
 public Tracker()
 {
     Options = new TrackingOptions();
 }
 public void Trace(TrackingOptions options = TrackingOptions.Default, System.Diagnostics.TraceSource source = null)
 {
     //throw new System.NotImplementedException();
 }
 public string ToFormattedString(TrackingOptions options = TrackingOptions.Default)
 {
     throw new System.NotImplementedException();
 }