Skip to content

Commit 6b2459c

Browse files
committed
trace2: add exit event to UI helpers
GCM's UI helpers are connected to the TRACE2 system via the Start() call in ApplicationBase.cs. Since this call records Version and Start events, ensure a corresponding Exit event is called before the helper process completes.
1 parent 2041523 commit 6b2459c

File tree

9 files changed

+9
-1
lines changed

9 files changed

+9
-1
lines changed

src/shared/Atlassian.Bitbucket.UI.Avalonia/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ private static void AppMain(object o)
5555
.GetAwaiter()
5656
.GetResult();
5757

58+
context.Trace2.Stop(exitCode);
5859
Environment.Exit(exitCode);
5960
}
6061
}

src/shared/Git-Credential-Manager.UI.Avalonia/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ private static void AppMain(object o)
5555
.GetAwaiter()
5656
.GetResult();
5757

58+
context.Trace2.Stop(exitCode);
5859
Environment.Exit(exitCode);
5960
}
6061
}

src/shared/Git-Credential-Manager/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static void Main(string[] args)
2929
);
3030
}
3131
}
32-
32+
3333
//
3434
// Git Credential Manager's executable used to be named "git-credential-manager-core" before
3535
// dropping the "-core" suffix. In order to prevent "helper not found" errors for users who

src/shared/GitHub.UI.Avalonia/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ private static void AppMain(object o)
5757
.GetAwaiter()
5858
.GetResult();
5959

60+
context.Trace2.Stop(exitCode);
6061
Environment.Exit(exitCode);
6162
}
6263
}

src/shared/GitLab.UI.Avalonia/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ private static void AppMain(object o)
5454
.GetAwaiter()
5555
.GetResult();
5656

57+
context.Trace2.Stop(exitCode);
5758
Environment.Exit(exitCode);
5859
}
5960
}

src/windows/Atlassian.Bitbucket.UI.Windows/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public static async Task Main(string[] args)
2828
.GetAwaiter()
2929
.GetResult();
3030

31+
context.Trace2.Stop(exitCode);
3132
Environment.Exit(exitCode);
3233
}
3334
}

src/windows/Git-Credential-Manager.UI.Windows/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public static async Task Main(string[] args)
2828
.GetAwaiter()
2929
.GetResult();
3030

31+
context.Trace2.Stop(exitCode);
3132
Environment.Exit(exitCode);
3233
}
3334
}

src/windows/GitHub.UI.Windows/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public static async Task Main(string[] args)
3030
.GetAwaiter()
3131
.GetResult();
3232

33+
context.Trace2.Stop(exitCode);
3334
Environment.Exit(exitCode);
3435
}
3536
}

src/windows/GitLab.UI.Windows/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public static async Task Main(string[] args)
2828
.GetAwaiter()
2929
.GetResult();
3030

31+
context.Trace2.Stop(exitCode);
3132
Environment.Exit(exitCode);
3233
}
3334
}

0 commit comments

Comments
 (0)