DotPulsar.Extensions.DependencyInjection
0.0.8
See the version list below for details.
dotnet add package DotPulsar.Extensions.DependencyInjection --version 0.0.8
NuGet\Install-Package DotPulsar.Extensions.DependencyInjection -Version 0.0.8
<PackageReference Include="DotPulsar.Extensions.DependencyInjection" Version="0.0.8" />
paket add DotPulsar.Extensions.DependencyInjection --version 0.0.8
#r "nuget: DotPulsar.Extensions.DependencyInjection, 0.0.8"
// Install DotPulsar.Extensions.DependencyInjection as a Cake Addin #addin nuget:?package=DotPulsar.Extensions.DependencyInjection&version=0.0.8 // Install DotPulsar.Extensions.DependencyInjection as a Cake Tool #tool nuget:?package=DotPulsar.Extensions.DependencyInjection&version=0.0.8
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.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 | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
-
net7.0
- DotPulsar (>= 3.3.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
-
net8.0
- DotPulsar (>= 3.3.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.