nkosi23 / Orleans.Streaming.RabbitMQ

RabbitMQ Streaming Provider for Orleans

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RabbitMQ Provider for Orleans Streaming

Usage

public class SiloBuilderConfigurator : IHostConfigurator
{
    public void Configure(IHostBuilder hostBuilder)
        => hostBuilder
            .UseOrleans(builder =>
            {
                builder
                    .AddMemoryGrainStorage("PubSubStore")
                    .AddRabbitMQStreams("RabbitMQ", builder =>
                    {
                        builder.Configure(options =>
                        {
                            options.HostName = TestBase.HostName;
                            options.UserName = TestBase.UserName;
                            options.Password = TestBase.Password;
                        });
                    });
            });
}

public class ClientBuilderConfigurator : IClientBuilderConfigurator
{
    public virtual void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
        => clientBuilder
            .AddRabbitMQStreams("RabbitMQ", builder =>
            {
                builder.Configure(options =>
                {
                    options.HostName = TestBase.HostName;
                    options.UserName = TestBase.UserName;
                    options.Password = TestBase.Password;
                });
            });
}

About

RabbitMQ Streaming Provider for Orleans

License:MIT License


Languages

Language:C# 100.0%