FaGe.Steamworks.NET.Extensions 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FaGe.Steamworks.NET.Extensions --version 1.0.0
                    
NuGet\Install-Package FaGe.Steamworks.NET.Extensions -Version 1.0.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="FaGe.Steamworks.NET.Extensions" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FaGe.Steamworks.NET.Extensions" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="FaGe.Steamworks.NET.Extensions" />
                    
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 FaGe.Steamworks.NET.Extensions --version 1.0.0
                    
#r "nuget: FaGe.Steamworks.NET.Extensions, 1.0.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.
#addin nuget:?package=FaGe.Steamworks.NET.Extensions&version=1.0.0
                    
Install FaGe.Steamworks.NET.Extensions as a Cake Addin
#tool nuget:?package=FaGe.Steamworks.NET.Extensions&version=1.0.0
                    
Install FaGe.Steamworks.NET.Extensions as a Cake Tool

FaGe's Steamworks.NET Extension for .NET 8+

As you can see, this project is aimed to extend modern features to Steamworks.NET on regular .NET projects that targeting to up to date framework.

Extended features list

  • Allow get Steam API CallResult by await, achived by ToValueTask<T>() extension method series on SteamAPICall_t. These methods build on top of original CallResult<T> and can be accessed by using namespace FaGe.Steamworks.NET.Extensions. In current version, there are 2 variants.
    • Method ToValueTask<T>() is suitable for those call-results that don't considering cancellation. Example:
        var queryResult = await SteamUGC.SendQueryUGCRequest(queryHandle).ToValueTask<SteamUGCQueryCompleted_t>();
      
    • Method ToValueTaskWithCancellation<T>() returns a ValueTask<T> and carry out a CancellationTokenSource by the way, you can later cancel this operation by that CancellationTokenSource. Example:
        // do async operation
        var result = SteamUGC.SendQueryUGCRequest(queryHandle).ToValueTaskWithCancellation<SteamUGCQueryCompleted_t>(out var ctsInSomeField);
      
        // somewhere else that want to cancel
        ctsInSomeField.Cancel()
      
  • Spawn automatic steam callback dispatcher thread by SteamCallbackDispatch.Singleton.SpawnCallbackDispatchThread() method.
    • Stop the dispatcher thread by the returned CancellationTokenSource. SteamCallbackDispatch.Singleton.StopDispatchSource is also the same. Beware, once the thread is stopped, it can't be restarted.
    • Lived in namespace FaGe.Steamworks.NET.Extensions
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1 156 3/11/2025
1.1.0 148 3/9/2025
1.0.0 203 3/7/2025