Skip to content
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

[wip] [spike] Minimize HTTP API console windows #297

Closed
wants to merge 1 commit into from
Closed

[wip] [spike] Minimize HTTP API console windows #297

wants to merge 1 commit into from

Conversation

adamralph
Copy link
Member

Connects to #295.

This will do it. Note that it needs net471 or higher, or a switch to any version of netcoreapp: https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.runtimeinformation#applies-to

If we like it, we need to think about how to get this code into all the API projects. I'm reluctant to duplicate it.

@adamralph adamralph requested a review from a team September 3, 2018 16:01
@adamralph
Copy link
Member Author

/cc @timbussmann

{
public static void TryMinimize()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that check really necessary when targeting the .NET Framework?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timbussmann it's an edge case, but you could run it on Mono on *nix. But in any case, we want to move to .NET Core ASAP anyway, so I'd rather include this check now.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@adamralph
Copy link
Member Author

I'll raise a proper PR to get this in if/when the opportunity arises.

@adamralph adamralph closed this Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants