public static void EndPerformanceSequenceAfterRender(PerformanceEvent performanceEvent, string additionalInformation)
 {
     if (Application.Current != null)
     {
         Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Loaded, new DispatcherOperationCallback((object arg) =>
         {
             PerformanceUtility.EndPerformanceSequence(performanceEvent, additionalInformation);
             return(null);
         }), null);
     }
 }
 public static void EndPerformanceSequenceOnIdle(PerformanceEvent performanceEvent)
 {
     if (Application.Current != null)
     {
         Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new DispatcherOperationCallback((object arg) =>
         {
             PerformanceUtility.EndPerformanceSequence(performanceEvent);
             return(null);
         }), null);
     }
 }
 public void Dispose()
 {
     PerformanceUtility.EndPerformanceSequence(this.performanceEvent);
 }
 // <EndPerformanceSequenceAfterRender>b__8
 public object u003cEndPerformanceSequenceAfterRenderu003eb__8(object arg)
 {
     PerformanceUtility.EndPerformanceSequence(this.performanceEvent, this.additionalInformation);
     return(null);
 }
 // <EndPerformanceSequenceAfterRender>b__4
 public object u003cEndPerformanceSequenceAfterRenderu003eb__4(object arg)
 {
     PerformanceUtility.EndPerformanceSequence(this.performanceEvent);
     return(null);
 }
 // <EndPerformanceSequenceOnIdle>b__0
 public object u003cEndPerformanceSequenceOnIdleu003eb__0(object arg)
 {
     PerformanceUtility.EndPerformanceSequence(this.performanceEvent);
     return(null);
 }