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

Switch Win32 event to .Net Semaphore #263

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

MikeHillberg
Copy link
Contributor

Description

In the C# WinUI Instancing example, the code defines pinvokes in order to create a Win32 Event and do a CoWait. I had trouble getting that to work in my app on copy/paste, and in any case it's unnecessarily complicated for C#. So the update here is to use a .Net Semaphore instead.

Also updated the project to .Net6 so that it can be used in VS2022.

Target Release

1.1

Checklist

  • Samples build and run using the Visual Studio versions listed in the Windows development docs.
  • Samples build and run on all supported platforms (x64, x86, ARM64) and configurations (Debug, Release).
  • Samples set the minimum supported OS version to Windows 10 version 1809.
  • Samples build clean with no warnings or errors.
  • I have commented on my PR /azp run SamplesCI-<FeatureName> to have the CI build run on my branch for each of my FeatureName my PR is modifying. This must be done on the latest commit on the PR before merging to ensure the build is up to date and accurate. Warning: the PR will not block automatically if this is not run due to '/azp run' limitation on triggering more than 10 pipelines.

@MikeHillberg
Copy link
Contributor Author

/azp run SamplesCI-AppLifecycle

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MikeHillberg MikeHillberg merged commit 78bb26c into main Oct 27, 2022
@MikeHillberg MikeHillberg deleted the user/mikehill/instancing-semaphore branch October 27, 2022 19:53
whshenhe added a commit to whshenhe/WindowsAppSDK-Samples that referenced this pull request Nov 10, 2022
beervoley pushed a commit to paulcam206/WindowsAppSDK-Samples that referenced this pull request Dec 8, 2022
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.

None yet

2 participants