DotPulsar.Extensions.DependencyInjection 0.0.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package DotPulsar.Extensions.DependencyInjection --version 0.0.7                
NuGet\Install-Package DotPulsar.Extensions.DependencyInjection -Version 0.0.7                
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.0.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotPulsar.Extensions.DependencyInjection --version 0.0.7                
#r "nuget: DotPulsar.Extensions.DependencyInjection, 0.0.7"                
#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.
// Install DotPulsar.Extensions.DependencyInjection as a Cake Addin
#addin nuget:?package=DotPulsar.Extensions.DependencyInjection&version=0.0.7

// Install DotPulsar.Extensions.DependencyInjection as a Cake Tool
#tool nuget:?package=DotPulsar.Extensions.DependencyInjection&version=0.0.7                

DotPulsar Dependency Injection Extensions

Build status CodeQL analysis

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1.0 106 7/15/2024
0.0.9 67 7/15/2024
0.0.8 94 7/10/2024
0.0.7 55 7/9/2024
0.0.6 65 7/9/2024
0.0.5 208 6/12/2024
0.0.3 75 6/12/2024
0.0.2-rc.1 103 3/7/2024