-
Notifications
You must be signed in to change notification settings - Fork 51
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
feat: Support universe domain environment variable #810
Conversation
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.
A couple of nits, but generally fine.
@@ -750,6 +750,22 @@ public async Task<TClient> BuildAsync(IServiceProvider provider, CancellationTok | |||
protected virtual ChannelBase CreateChannel(string endpoint, ChannelCredentials credentials) => | |||
LastCreatedChannel = EffectiveGrpcAdapter.CreateChannel(ServiceMetadata, endpoint, credentials, GetChannelOptions()); | |||
|
|||
/// <summary> | |||
/// Retrives the value of the environment variable with <paramref name="name"/>, |
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.
Retrives => Retrieves
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.
Done
/// Retrives the value of the environment variable with <paramref name="name"/>, | ||
/// mapping empty or whitespace-only strings to null. | ||
/// </summary> | ||
private static string GetNonEmptyOrNullEnvironmentVariable(string name) => GetNonEmptyOrNullValue(name, Environment.GetEnvironmentVariable); |
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.
Maybe GetNonWhiteSpaceOrNull? I'd expected a call to string.IsNullOrEmpty later rather than string.IsNullOrWhiteSpace.
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.
Yes, that's better, changing...
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.
Thanks, I'll push the changes and merge on green.
@@ -750,6 +750,22 @@ public async Task<TClient> BuildAsync(IServiceProvider provider, CancellationTok | |||
protected virtual ChannelBase CreateChannel(string endpoint, ChannelCredentials credentials) => | |||
LastCreatedChannel = EffectiveGrpcAdapter.CreateChannel(ServiceMetadata, endpoint, credentials, GetChannelOptions()); | |||
|
|||
/// <summary> | |||
/// Retrives the value of the environment variable with <paramref name="name"/>, |
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.
Done
/// Retrives the value of the environment variable with <paramref name="name"/>, | ||
/// mapping empty or whitespace-only strings to null. | ||
/// </summary> | ||
private static string GetNonEmptyOrNullEnvironmentVariable(string name) => GetNonEmptyOrNullValue(name, Environment.GetEnvironmentVariable); |
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.
Yes, that's better, changing...
a6d984b
to
b139283
Compare
Towards b/325308829