Skip to main content
Table of Contents

Class RedisCoordinationOptions

Namespace
Stratara.Outbox.RabbitMQ
Assembly
Stratara.Outbox.RabbitMQ.dll

Options naming the product whose hosts coordinate over a shared Redis: the projection replay state and the Redis-leased outbox lock. AddProjectionReplayState() and AddRedisOutboxLock() read them from the configuration section SectionName ("RedisCoordination") of the host's configuration; a service collection that holds no configuration gets the defaults. A value set with services.Configure<RedisCoordinationOptions>(...) after those calls takes precedence over the section.

public sealed class RedisCoordinationOptions
Inheritance
RedisCoordinationOptions
Inherited Members
Extension Methods

Fields

SectionName

Configuration section name ("RedisCoordination") used to bind these options.

public const string SectionName = "RedisCoordination"

Field Value

string

Properties

ProductName

The name of the product this host belongs to, carried by every Redis key and channel the framework writes. Products with different names share a Redis without seeing each other's replay requests, replay state or outbox lock. Every host of a product must have the same name, compared exactly, so Acme and acme are different products; a host with no name or another name does not coordinate with it, so set the name on all hosts of a product together. Null or empty, the default, keeps the names of earlier releases. May hold letters, digits, ., _ and -; anything else is refused when the host starts.

public string? ProductName { get; set; }

Property Value

string