Skip to content

Commit

Permalink
Don't try serialize internal ElapsedTicks prop which refs null _sw wh…
Browse files Browse the repository at this point in the history
…en deserialized from sql
  • Loading branch information
mythz committed Feb 8, 2016
1 parent bc39047 commit c8f2102
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ServiceStack/MiniProfiler/Profiler.cs
Expand Up @@ -178,7 +178,6 @@ public decimal TrivialDurationThresholdMilliseconds
/// <summary>
/// Ticks since this MiniProfiler was started.
/// </summary>
[DataMember(Order = 13)]
internal long ElapsedTicks { get { return _sw.ElapsedTicks; } }

/// <summary>
Expand All @@ -187,7 +186,7 @@ public decimal TrivialDurationThresholdMilliseconds
/// <remarks>
/// Is used when storing the Profiler in SqlStorage
/// </remarks>
[DataMember(Order = 14)]
[DataMember(Order = 13)]
public string Json { get; set; }

/// <summary>
Expand Down

0 comments on commit c8f2102

Please sign in to comment.