@@ -17,7 +17,7 @@ namespace StackExchange.Profiling
1717 public partial class MiniProfiler
1818 {
1919 /// <summary>
20- /// Initialises a new instance of the <see cref="MiniProfiler"/> class.
20+ /// Initialises a new instance of the <see cref="MiniProfiler"/> class.
2121 /// Obsolete - used for serialization.
2222 /// </summary>
2323 [ Obsolete ( "Used for serialization" ) ]
@@ -26,7 +26,7 @@ public MiniProfiler()
2626 }
2727
2828 /// <summary>
29- /// Initialises a new instance of the <see cref="MiniProfiler"/> class. Creates and starts a new MiniProfiler
29+ /// Initialises a new instance of the <see cref="MiniProfiler"/> class. Creates and starts a new MiniProfiler
3030 /// for the root <paramref name="url"/>.
3131 /// </summary>
3232 public MiniProfiler ( string url )
@@ -45,7 +45,7 @@ public MiniProfiler(string url)
4545 }
4646
4747 /// <summary>
48- /// Initialises a new instance of the <see cref="MiniProfiler"/> class. Creates and starts a new MiniProfiler
48+ /// Initialises a new instance of the <see cref="MiniProfiler"/> class. Creates and starts a new MiniProfiler
4949 /// for the root <paramref name="url"/>, filtering <see cref="Timing"/> steps to <paramref name="level"/>.
5050 /// </summary>
5151 [ Obsolete ( "Please use the MiniProfiler(string url) constructor instead of this one. ProfileLevel is going away" ) ]
@@ -112,17 +112,19 @@ public MiniProfiler(string url, ProfileLevel level = ProfileLevel.Info) : this(u
112112 /// Json used to store Custom Links. Do not touch.
113113 /// </summary>
114114 [ ScriptIgnore ]
115- public string CustomLinksJson {
116- get { return CustomLinks != null ? CustomLinks . ToJson ( ) : null ; }
117- set {
115+ public string CustomLinksJson
116+ {
117+ get { return CustomLinks != null ? CustomLinks . ToJson ( ) : null ; }
118+ set
119+ {
118120 if ( value . HasValue ( ) )
119121 {
120122 CustomLinks = value . FromJson < Dictionary < string , string > > ( ) ;
121123 }
122- }
124+ }
123125 }
124-
125- /// <summary>
126+
127+ /// <summary>
126128 /// Gets or sets the root timing.
127129 /// The first <see cref="Timing"/> that is created and started when this profiler is instantiated.
128130 /// All other <see cref="Timing"/>s will be children of this one.
@@ -159,7 +161,7 @@ public Timing Root
159161 for ( int i = children . Count - 1 ; i >= 0 ; i -- )
160162 {
161163 children [ i ] . ParentTiming = timing ;
162- timings . Push ( children [ i ] ) ; // FLORIDA! TODO: refactor this and other stack creation methods into one
164+ timings . Push ( children [ i ] ) ; // FLORIDA! TODO: refactor this and other stack creation methods into one
163165 }
164166 }
165167 }
@@ -207,15 +209,15 @@ public Timing Root
207209 public bool HasUserViewed { get ; set ; }
208210
209211 /// <summary>
210- /// Gets or sets whether or not filtering is allowed of <see cref="Timing"/> steps based on what <see cref="ProfileLevel"/>
212+ /// Gets or sets whether or not filtering is allowed of <see cref="Timing"/> steps based on what <see cref="ProfileLevel"/>
211213 /// the steps are created with.
212214 /// </summary>
213215 [ Obsolete ( "If you don't want this removed, speak up at https://github.com/MiniProfiler/dotnet" ) ]
214216 [ ScriptIgnore ]
215217 public ProfileLevel Level { get ; set ; }
216218
217219 /// <summary>
218- /// Gets or sets points to the currently executing Timing.
220+ /// Gets or sets points to the currently executing Timing.
219221 /// </summary>
220222 [ ScriptIgnore ]
221223 public Timing Head { get ; set ; }
@@ -235,7 +237,7 @@ internal IStopwatch Stopwatch
235237 {
236238 get { return _sw ; }
237239 }
238-
240+
239241 /// <summary>
240242 /// Gets the currently running MiniProfiler for the current HttpContext; null if no MiniProfiler was <see cref="Start(string)"/>ed.
241243 /// </summary>
@@ -249,7 +251,7 @@ public static MiniProfiler Current
249251 }
250252
251253 /// <summary>
252- /// A <see cref="IStorage"/> strategy to use for the current profiler.
254+ /// A <see cref="IStorage"/> strategy to use for the current profiler.
253255 /// If null, then the <see cref="IStorage"/> set in <see cref="MiniProfiler.Settings.Storage"/> will be used.
254256 /// </summary>
255257 /// <remarks>Used to set custom storage for an individual request</remarks>
@@ -261,7 +263,7 @@ public static MiniProfiler Current
261263 /// </summary>
262264 public static MiniProfiler Start ( )
263265 {
264- // ToDo - overloading the method too many times - will correct when delete the Obsolete version.
266+ // ToDo - overloading the method too many times - will correct when delete the Obsolete version.
265267 // Until then need it this way to prevent ambiguity
266268 return Start ( null ) ;
267269 }
@@ -300,7 +302,7 @@ public static MiniProfiler Start(ProfileLevel level, string sessionName = null)
300302 /// Ends the current profiling session, if one exists.
301303 /// </summary>
302304 /// <param name="discardResults">
303- /// When true, clears the <see cref="MiniProfiler.Current"/> for this HttpContext, allowing profiling to
305+ /// When true, clears the <see cref="MiniProfiler.Current"/> for this HttpContext, allowing profiling to
304306 /// be prematurely stopped and discarded. Useful for when a specific route does not need to be profiled.
305307 /// </param>
306308 public static void Stop ( bool discardResults = false )
@@ -359,7 +361,7 @@ public static MiniProfiler FromJson(string json)
359361
360362 private static JavaScriptSerializer GetJsonSerializer ( )
361363 {
362- return new JavaScriptSerializer { MaxJsonLength = Settings . MaxJsonResponseSize } ;
364+ return new JavaScriptSerializer { MaxJsonLength = Settings . MaxJsonResponseSize } ;
363365 }
364366
365367 /// <summary>
@@ -377,22 +379,22 @@ private static JavaScriptSerializer GetJsonSerializer()
377379 /// <param name="startHidden">Should the profiler start as hidden. Default to null.</param>
378380 /// <returns>Script and link elements normally; an empty string when there is no active profiling session.</returns>
379381 public static IHtmlString RenderIncludes (
380- RenderPosition ? position = null ,
381- bool ? showTrivial = null ,
382- bool ? showTimeWithChildren = null ,
383- int ? maxTracesToShow = null ,
382+ RenderPosition ? position = null ,
383+ bool ? showTrivial = null ,
384+ bool ? showTimeWithChildren = null ,
385+ int ? maxTracesToShow = null ,
384386 bool ? showControls = null ,
385387 bool ? useExistingjQuery = null , // TODO: we need to deprecate this
386388 bool samplingOnly = false , // TODO: can we remove this?
387389 bool ? startHidden = null )
388390 {
389391 return MiniProfilerHandler . RenderIncludes (
390- Current ,
391- position ,
392- showTrivial ,
393- showTimeWithChildren ,
394- maxTracesToShow ,
395- showControls ,
392+ Current ,
393+ position ,
394+ showTrivial ,
395+ showTimeWithChildren ,
396+ maxTracesToShow ,
397+ showControls ,
396398 startHidden ) ;
397399 }
398400
0 commit comments