Class ReplayLatestSubjectCreationOptions
- Namespace
- ReactiveUI.Extensions.Async.Subjects
- Assembly
- ReactiveUI.Extensions.dll
Represents configuration options for creating a replay-latest subject, controlling publishing behavior and state retention.
public sealed record ReplayLatestSubjectCreationOptions : IEquatable<ReplayLatestSubjectCreationOptions>
- Inheritance
-
ReplayLatestSubjectCreationOptions
- Implements
- Extension Methods
Remarks
Use this type to specify how a replay-latest subject should handle message publishing and whether it maintains state. The options provided affect how subscribers receive messages and whether the subject retains the latest value. This type is immutable and can be used to configure subject creation in a thread-safe manner.
Constructors
ReplayLatestSubjectCreationOptions()
public ReplayLatestSubjectCreationOptions()
Properties
Default
Gets the default configuration options for creating a ReplayLatestSubject instance.
public static ReplayLatestSubjectCreationOptions Default { get; }
Property Value
Remarks
The default options specify serial publishing and stateful behavior. Use this property to obtain a baseline configuration that can be modified as needed.
IsStateless
Gets a value indicating whether the object is stateless.
public required bool IsStateless { get; init; }
Property Value
PublishingOption
Gets the publishing option to use when processing this item.
public required PublishingOption PublishingOption { get; init; }
Property Value
Methods
Equals(ReplayLatestSubjectCreationOptions?)
public bool Equals(ReplayLatestSubjectCreationOptions? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ReplayLatestSubjectCreationOptions?, ReplayLatestSubjectCreationOptions?)
public static bool operator ==(ReplayLatestSubjectCreationOptions? left, ReplayLatestSubjectCreationOptions? right)
Parameters
Returns
operator !=(ReplayLatestSubjectCreationOptions?, ReplayLatestSubjectCreationOptions?)
public static bool operator !=(ReplayLatestSubjectCreationOptions? left, ReplayLatestSubjectCreationOptions? right)