Capjan.WakeLock.Abstractions 0.2.0

dotnet add package Capjan.WakeLock.Abstractions --version 0.2.0
                    
NuGet\Install-Package Capjan.WakeLock.Abstractions -Version 0.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Capjan.WakeLock.Abstractions" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Capjan.WakeLock.Abstractions" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Capjan.WakeLock.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Capjan.WakeLock.Abstractions --version 0.2.0
                    
#r "nuget: Capjan.WakeLock.Abstractions, 0.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Capjan.WakeLock.Abstractions@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Capjan.WakeLock.Abstractions&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Capjan.WakeLock.Abstractions&version=0.2.0
                    
Install as a Cake Tool

WakeLock.Abstractions

Small abstractions for acquiring process-scoped wake locks.

using Capjan.WakeLock;

using var handle = wakeLock.Acquire(WakeLockLevel.PreventSleep);

Use WakeLockLevel.PreventSleepAndDisplay when the display should stay awake too.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Capjan.WakeLock.Abstractions:

Package Downloads
Capjan.WakeLock.MacOS

macOS wake lock implementation for preventing system sleep or display sleep.

Capjan.WakeLock.Windows

Windows wake lock implementation for preventing system sleep or display sleep.

Capjan.WakeLock.Linux

Linux wake lock implementation for preventing system sleep or idle display sleep.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 120 5/31/2026
0.1.9 129 5/29/2026
0.1.8 116 5/29/2026
0.1.7 121 5/29/2026
0.1.6 115 5/29/2026
0.1.5 126 5/29/2026
0.1.4 128 5/29/2026