Dot0.Rubika
10.0.1
dotnet add package Dot0.Rubika --version 10.0.1
NuGet\Install-Package Dot0.Rubika -Version 10.0.1
<PackageReference Include="Dot0.Rubika" Version="10.0.1" />
<PackageVersion Include="Dot0.Rubika" Version="10.0.1" />
<PackageReference Include="Dot0.Rubika" />
paket add Dot0.Rubika --version 10.0.1
#r "nuget: Dot0.Rubika, 10.0.1"
#:package Dot0.Rubika@10.0.1
#addin nuget:?package=Dot0.Rubika&version=10.0.1
#tool nuget:?package=Dot0.Rubika&version=10.0.1
Dot0.Rubika
Reusable .NET 10 Rubika bot clients, shared HTTP settings and update forwarding. This package has no Axon or other Dot0 package dependency.
Registration
Inject IRubikaClientFactory, register through AddRubika() and create
clients with factory.Create(botToken). Import the Dot0.Rubika namespace.
The configured overload AddRubika(options => { ... }) captures and validates
RubikaClientOptions once and returns the named HTTP client builder.
Options cover the API base URL, proxy, timeout and pooled connection lifetime.
Tokens stay on individual clients, outside shared HTTP settings. Cookies,
automatic redirects and factory request logging are disabled. Registration starts
no listeners. Hosts own callback authentication and application state.
Native client and polling
The default endpoint is https://botapi.rubika.ir/v3/, with a 30-second timeout.
The native RubikaHttpClient includes protocol models, multipart upload and
streamed file download. Factory-created clients share a factory-owned HTTP client.
Explicitly constructed clients use caller-owned HTTP clients and streams.
Pass cancellation tokens to individual API methods.
Inject Dot0.Rubika.Poolling.IRubikaBotUpdatePoller. PollAsync accepts a client
or token, a forwarding URL, a caller-owned HTTP forwarder and an optional cursor.
It fetches one batch, forwards updates inside native update envelopes sequentially,
and returns the next cursor only after all forwarding succeeds. Missing next
cursors preserve the supplied offset. Callers own scheduling, cursor storage and
forwarder configuration. No timer, background loop or retry policy is installed.
Checks and publishing
Run dotnet run --project Rubika.Client.Tests/Rubika.Client.Tests.csproj --configuration Release
for offline HTTP and protocol checks, without live credentials.
The workflow deploy-rubika.yml builds, checks, packs and publishes
Dot0.Rubika as 10.0.<GitHub run number>. It runs from the deploy-rubika
branch or by manual dispatch. Configure its NuGet Trusted Publishing policy and
NUGET_USER using the repository setup.
Source changes and local packages do not establish NuGet publication.
| 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. |
-
net10.0
- No dependencies.
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 |
|---|---|---|
| 10.0.1 | 40 | 11/18/2026 |