Scarx.Public.Api 2.3.1

dotnet add package Scarx.Public.Api --version 2.3.1
                    
NuGet\Install-Package Scarx.Public.Api -Version 2.3.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="Scarx.Public.Api" Version="2.3.1" />
                    
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.1" />
                    
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.1
                    
#r "nuget: Scarx.Public.Api, 2.3.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.
#addin nuget:?package=Scarx.Public.Api&version=2.3.1
                    
Install Scarx.Public.Api as a Cake Addin
#tool nuget:?package=Scarx.Public.Api&version=2.3.1
                    
Install Scarx.Public.Api as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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.  net10.0 was computed.  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.

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.1 149 6/3/2025
2.3.0 129 6/3/2025
2.2.1 133 6/2/2025
2.2.0 126 6/2/2025
2.1.0 131 6/2/2025
2.0.0 130 6/1/2025
1.0.0 156 5/18/2025