DotPulsar.Extensions.DependencyInjection
0.5.1
dotnet add package DotPulsar.Extensions.DependencyInjection --version 0.5.1
NuGet\Install-Package DotPulsar.Extensions.DependencyInjection -Version 0.5.1
<PackageReference Include="DotPulsar.Extensions.DependencyInjection" Version="0.5.1" />
<PackageVersion Include="DotPulsar.Extensions.DependencyInjection" Version="0.5.1" />
<PackageReference Include="DotPulsar.Extensions.DependencyInjection" />
paket add DotPulsar.Extensions.DependencyInjection --version 0.5.1
#r "nuget: DotPulsar.Extensions.DependencyInjection, 0.5.1"
#:package DotPulsar.Extensions.DependencyInjection@0.5.1
#addin nuget:?package=DotPulsar.Extensions.DependencyInjection&version=0.5.1
#tool nuget:?package=DotPulsar.Extensions.DependencyInjection&version=0.5.1
DotPulsar Dependency Injection Extensions
Enables easy integration of DotPulsar with the new .NET Generic Host project types.
Installation
dotnet add package DotPulsar.Extensions.DependencyInjection
Usage
services.AddPulsarOptions().AddPulsarClient();
This will register the IPulsarClient as a singleton in the service collection with the default settings. The settings can be configured using the standard appSettings.json file with the following configuration keys supported.
Pulsar:ServiceUrl- The service URL for the Pulsar cluster.Pulsar:AuthenticateUsingClientCertificate- Authenticate using a client certificate.Pulsar:AuthenticateUsingClientCertificate:Path- The path to the client certificate.Pulsar:AuthenticateUsingClientCertificate:KeyPath- The path to the client certificate key.Pulsar:AuthenticateUsingClientCertificate:Password- The client certificate password.
Pulsar:AuthenticationToken- Authenticate using a token.Pulsar:CheckCertificateRevocation- Specifies whether the certificate revocation list is checked during authentication.Pulsar:ConnectionSecurity- Set connection encryption policy.Pulsar:KeepAliveInterval- The time to wait before sending a 'ping' if there has been no activity on the connection.Pulsar:ListenerName- Set the listener name.Pulsar:RetryInterval- The time to wait before retrying an operation or a reconnect.Pulsar:TrustedCertificateAuthority- Add a trusted certificate authority.Pulsar:VerifyCertificateAuthority- Verify the certificate authority.Pulsar:VerifyCertificateName- Verify the certificate name with the hostname.Pulsar:CloseInactiveConnectionsInterval- The time to wait before closing inactive connections.
There are also several overloads to AddPulsarClient that allow for more fine-grained control over the client settings.
License
This project is licensed under Apache License, Version 2.0.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. 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. |
-
net8.0
- DotPulsar (>= 5.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.10)
-
net9.0
- DotPulsar (>= 5.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.10)
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 |
|---|---|---|
| 0.5.1 | 520 | 11/12/2025 |
| 0.5.0 | 267 | 11/11/2025 |
| 0.3.1 | 3,484 | 3/31/2025 |
| 0.3.0 | 215 | 3/11/2025 |
| 0.2.4 | 1,637 | 2/21/2025 |
| 0.2.3 | 159 | 2/20/2025 |
| 0.2.2 | 1,477 | 2/6/2025 |
| 0.2.1 | 1,891 | 9/3/2024 |
| 0.2.0 | 212 | 7/30/2024 |
| 0.1.0 | 226 | 7/15/2024 |
| 0.0.9 | 157 | 7/15/2024 |
| 0.0.8 | 192 | 7/10/2024 |
| 0.0.7 | 160 | 7/9/2024 |
| 0.0.6 | 166 | 7/9/2024 |
| 0.0.5 | 283 | 6/12/2024 |
| 0.0.3 | 161 | 6/12/2024 |
| 0.0.2-rc.1 | 163 | 3/7/2024 |