Headquarter-Sharp
1.0.1.1
dotnet add package Headquarter-Sharp --version 1.0.1.1
NuGet\Install-Package Headquarter-Sharp -Version 1.0.1.1
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="Headquarter-Sharp" Version="1.0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Headquarter-Sharp" Version="1.0.1.1" />
<PackageReference Include="Headquarter-Sharp" />
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 Headquarter-Sharp --version 1.0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Headquarter-Sharp, 1.0.1.1"
#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 Headquarter-Sharp@1.0.1.1
#: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=Headquarter-Sharp&version=1.0.1.1
#tool nuget:?package=Headquarter-Sharp&version=1.0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Headquarter-Sharp
A .NET port of the Headquarter library.
Installation
dotnet add package Headquarter-Sharp
Configuration
Set the following environment variables:
Logging
Logging__MinimumLevel__Default- Default log level (e.g.,Debug)Logging__MinimumLevel__Override__Microsoft- Microsoft log level (e.g.,Warning)
DhmKey
DhmKey__Root- Root valueDhmKey__ServerPublic- Server public keyDhmKey__Prime- Prime value
Game
Game__Version- Game version (e.g.,38024)
Preferences
Preferences__Language- Language (e.g.,English)Preferences__Region- Region (e.g.,Europe)Preferences__District- District (e.g.,0)Preferences__PlayerStatus- Player status (e.g.,Online)
Credentials
Credentials__Username- Account emailCredentials__Password- Account passwordCredentials__Character- Character nameCredentials__Secret- 2FA secretCredentials__ComputerUser- Computer userCredentials__ComputerName- Computer nameCredentials__ComputerUnique- Unique identifier
Usage
var builder = HeadquarterApplication.Create();
builder.Configuration.AddEnvironmentVariables();
builder.Logging.AddConsole();
var app = builder.Build();
var loginResult = await app.PortalLogin(CancellationToken.None);
if (loginResult is not LoginResult.Success success)
{
return;
}
await app.Run(success.Context, CancellationToken.None);
License
See LICENSE.txt
| Product | Versions 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
- BouncyCastle.Cryptography (>= 2.6.2)
- Microsoft.Extensions.Configuration (>= 10.0.1)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.1)
- Microsoft.Extensions.Configuration.Json (>= 10.0.1)
- Microsoft.Extensions.DependencyInjection (>= 10.0.1)
- Microsoft.Extensions.Hosting (>= 10.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Logging (>= 10.0.1)
- Microsoft.Extensions.Logging.Configuration (>= 10.0.1)
- Microsoft.Extensions.Options (>= 10.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.1)
- PeNet (>= 5.1.0)
- Serilog.Extensions.Logging (>= 10.0.0)
- Serilog.Settings.Configuration (>= 10.0.0)
- Serilog.Sinks.Console (>= 6.1.1)
- SystemExtensions.NetCore (>= 1.8.0)
- SystemExtensions.NetStandard.Security (>= 1.3.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.