RickDotNet.Apollo.Providers.NATS 0.5.4-preview-1

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

// Install RickDotNet.Apollo.Providers.NATS as a Cake Tool
#tool nuget:?package=RickDotNet.Apollo.Providers.NATS&version=0.5.4-preview-1&prerelease                

Apollo

Apollo aims to be a lightweight, high-performance messaging client designed to provide developers with a simple yet powerful way to incorporate flexible architectures into their .NET applications.

Documentation

Apollo is under rapid development. Please refer to the Apollo Docs for the most up-to-date information.

Example Usage

Hosted Example

builder.Services.AddApollo(ab => ab
            .CreateMissingResources()
            .WithDefaultNamespace("instance-1")
            .WithDefaultConsumerName("default-consumer")
            .AddEndpoint<HostEventsEndpoint>(HostEventsEndpointConfig.Default)
            .AddNatsProvider(opts => opts with
            {
                Url = "nats://localhost:4222",
                AuthOpts = new NatsAuthOpts
                {
                    Username = "username",
                    Password = "password"
                }
            })
        );

Direct Usage

var apolloConfig = new ApolloConfig { InstanceId = "my-instance", DefaultConsumerName = "my-consumer" };
var client = new ApolloClient(apolloConfig, endpointProvider: new EndpointProvider());

// configure and add an endpoint
var endpointConfig = new EndpointConfig
{
    Namespace = "dev.myapp",
    EndpointName = "My Endpoint"
};

var endpoint = client.AddEndpoint<TestEndpoint>(endpointConfig);
_ = endpoint.StartEndpoint(cancellationToken);

await Task.Delay(-1, cancellationToken);

// clean up
await endpoint.DisposeAsync();
Product 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. 
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.6.2 71 11/17/2024
0.5.6 80 11/17/2024
0.5.5 79 11/14/2024
0.5.4-preview-1 69 11/13/2024
0.5.3 80 11/12/2024
0.5.2 76 11/2/2024
0.5.1 79 11/2/2024
0.5.0 95 10/15/2024
0.4.4 108 9/22/2024
0.4.3 138 9/16/2024
0.4.2 123 9/14/2024
0.4.1 74 9/10/2024