VOOZH about

URL: https://www.nuget.org/packages/Scarx.Public.Api/

⇱ NuGet Gallery | Scarx.Public.Api 2.3.2




Scarx.Public.Api 2.3.2

dotnet add package Scarx.Public.Api --version 2.3.2
 
 
NuGet\Install-Package Scarx.Public.Api -Version 2.3.2
 
 
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="Scarx.Public.Api" Version="2.3.2" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Scarx.Public.Api" Version="2.3.2" />
 
Directory.Packages.props
<PackageReference Include="Scarx.Public.Api" />
 
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 Scarx.Public.Api --version 2.3.2
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Scarx.Public.Api, 2.3.2"
 
 
#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 Scarx.Public.Api@2.3.2
 
 
#: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=Scarx.Public.Api&version=2.3.2
 
Install as a Cake Addin
#tool nuget:?package=Scarx.Public.Api&version=2.3.2
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Scarx Public API

The intended way to use the Scarx API client is to use dependency injection.

Within the ConfigureServices function, the Grpc Scarx Client can be added as follows:

Simple-Usage (without Api-Token):

services.AddGrpcScarxClient();

Simple-Usage (with Api-Token):

services.AddGrpcScarxClient("apiToken");

This makes the “IScarxApi” interface available as a transient service.

An exemplary use is:

public class Test
{
 private readonly IScarxApi _api;
 
 public Test(IScarxApi api)
 {
 this._api = api;
 }
 
 public async Task<IpDetails> GetIpInfo(string ip) 
 {
 return await _api.Ip.GetIpDetailsAsync(new IpRequest(){Ip = ip});
 }
}
Product Versions Compatible and additional computed target framework versions.
.NET net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.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
2.3.2 754 7/1/2025
2.3.1 267 6/3/2025
2.3.0 208 6/3/2025
2.2.1 224 6/2/2025
2.2.0 216 6/2/2025
2.1.0 214 6/2/2025
2.0.0 212 6/1/2025
1.0.0 259 5/18/2025