Compare commits

...

3 Commits

5 changed files with 53 additions and 0 deletions

View File

@ -3,6 +3,12 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net9.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<PackageProjectUrl>https://lab.code-rove.com/bitip/</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://lab.code-rove.com/gitea/tudor.stanciu/bitip/src/branch/main/src/clients/dotnet</RepositoryUrl>
<PackageTags>Bitip Toodle</PackageTags>
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/ReleaseNotes.txt"))</PackageReleaseNotes>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@ -10,4 +16,15 @@
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.9" /> <PackageReference Include="Microsoft.Extensions.Http" Version="9.0.9" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Update="logo.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Update="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
</Project> </Project>

View File

@ -0,0 +1,20 @@
# Bitip.Client
[Bitip](https://lab.code-rove.com/gitea/tudor.stanciu/bitip#readme) is a high-performance GeoIP lookup service designed to provide accurate geolocation data for IP addresses.
-------- TO DO --------
- You can see Bitip live here: https://lab.code-rove.com/bitip/
[Bitip.Client](https://lab.code-rove.com/gitea/tudor.stanciu/bitip/src/branch/main/src/clients/dotnet) is a simple .net client for Bitip. SDK is available as NuGet package on [NuGet](https://lab.code-rove.com/public-nuget-server/packages/bitip.client). Detail this section.
## Installation
You can install the Bitip.Client package via NuGet Package Manager Console:
```bash
Install-Package Bitip.Client
```
Or via .NET CLI:
```bash
--- TO DO ---

View File

@ -0,0 +1,8 @@
1.0.0 release [2025-10-08 01:35]
◾ Initial release of BitipClient, a .NET library for interacting with the Bitip API.
◾ Provides methods for retrieving IP geolocation data, ASN information, and domain details.
◾ Supports asynchronous operations for improved performance.
◾ Includes error handling for network issues and invalid API responses.
◾ Comprehensive documentation and usage examples included.
◾ Unit tests covering core functionality to ensure reliability.
◾ NuGet package available for easy integration into .NET projects.

View File

@ -1,8 +1,16 @@
// Copyright (c) 2025 Tudor Stanciu // Copyright (c) 2025 Tudor Stanciu
using Bitip.Client.Models;
using System.Threading;
using System.Threading.Tasks;
namespace Bitip.Client.Services namespace Bitip.Client.Services
{ {
public interface IBitipClient public interface IBitipClient
{ {
Task<HealthInfo> GetHealth(CancellationToken cancellationToken = default);
Task<VersionInfo> GetVersion(CancellationToken cancellationToken = default);
Task<IpLocation> GetIpLocation(string ip, CancellationToken cancellationToken = default);
Task<DetailedIpLocation> GetDetailedIpLocation(string ip, CancellationToken cancellationToken = default);
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB