DotPulsar.Extensions.DependencyInjection
0.3.1
dotnet add package DotPulsar.Extensions.DependencyInjection --version 0.3.1
NuGet\Install-Package DotPulsar.Extensions.DependencyInjection -Version 0.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="DotPulsar.Extensions.DependencyInjection" Version="0.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotPulsar.Extensions.DependencyInjection" Version="0.3.1" />
<PackageReference Include="DotPulsar.Extensions.DependencyInjection" />
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 DotPulsar.Extensions.DependencyInjection --version 0.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DotPulsar.Extensions.DependencyInjection, 0.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=DotPulsar.Extensions.DependencyInjection&version=0.3.1
#tool nuget:?package=DotPulsar.Extensions.DependencyInjection&version=0.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. 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. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- DotPulsar (>= 4.2.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
-
net7.0
- DotPulsar (>= 4.2.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
-
net8.0
- DotPulsar (>= 4.2.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
-
net9.0
- DotPulsar (>= 4.2.0)
- 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.
Version | Downloads | Last updated |
---|---|---|
0.3.1 | 149 | 5 days ago |
0.3.0 | 165 | 25 days ago |
0.2.4 | 893 | 2 months ago |
0.2.3 | 91 | 2 months ago |
0.2.2 | 707 | 2 months ago |
0.2.1 | 1,832 | 7 months ago |
0.2.0 | 155 | 8 months ago |
0.1.0 | 162 | 9 months ago |
0.0.9 | 115 | 9 months ago |
0.0.8 | 144 | 9 months ago |
0.0.7 | 104 | 9 months ago |
0.0.6 | 112 | 9 months ago |
0.0.5 | 244 | 10 months ago |
0.0.3 | 115 | 10 months ago |
0.0.2-rc.1 | 118 | 3/7/2024 |