-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Support binlog in build/restore of file-based programs #49009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,23 @@ private static FacadeLogger ConfigureDispatcher(List<BinaryLogger> binaryLoggers | |
return new FacadeLogger(dispatcher); | ||
} | ||
|
||
internal static void SeparateBinLogArguments(IEnumerable<string>? args, out List<string> binLogArgs, out List<string> nonBinLogArgs) | ||
{ | ||
binLogArgs = new List<string>(); | ||
nonBinLogArgs = new List<string>(); | ||
foreach (var arg in args ?? []) | ||
{ | ||
if (IsBinLogArgument(arg)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will return There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, |
||
{ | ||
binLogArgs.Add(arg); | ||
} | ||
else | ||
{ | ||
nonBinLogArgs.Add(arg); | ||
} | ||
} | ||
} | ||
|
||
internal static bool IsBinLogArgument(string arg) | ||
{ | ||
const StringComparison comp = StringComparison.OrdinalIgnoreCase; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider adding XML documentation comments for the SeparateBinLogArguments method to explain its behavior, especially the treatment of null inputs and the criteria used to separate binlog arguments.
Copilot uses AI. Check for mistakes.