Table of Contents

Class SubjectCreationOptions

Namespace
ReactiveUI.Extensions.Async.Subjects
Assembly
ReactiveUI.Extensions.dll

Represents the set of options used when creating a subject, including publishing behavior and state management requirements.

public sealed record SubjectCreationOptions : IEquatable<SubjectCreationOptions>
Inheritance
SubjectCreationOptions
Implements
Extension Methods

Remarks

Use this type to configure how a subject is created, specifying whether it should be stateless and which publishing option to apply. The options provided affect the subject's behavior and lifecycle. This record is immutable and can be used to ensure consistent subject creation across different parts of an application.

Constructors

SubjectCreationOptions()

public SubjectCreationOptions()

Properties

Default

Gets the default configuration for subject creation options.

public static SubjectCreationOptions Default { get; }

Property Value

SubjectCreationOptions

Remarks

The default options use serial publishing and are not stateless. Use this property as a baseline when configuring new subjects if standard behavior is desired.

IsStateless

Gets a value indicating whether the object is stateless.

public required bool IsStateless { get; init; }

Property Value

bool

PublishingOption

Gets the publishing option to use when processing the item.

public required PublishingOption PublishingOption { get; init; }

Property Value

PublishingOption

Methods

Equals(SubjectCreationOptions?)

public bool Equals(SubjectCreationOptions? other)

Parameters

other SubjectCreationOptions

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SubjectCreationOptions?, SubjectCreationOptions?)

public static bool operator ==(SubjectCreationOptions? left, SubjectCreationOptions? right)

Parameters

left SubjectCreationOptions
right SubjectCreationOptions

Returns

bool

operator !=(SubjectCreationOptions?, SubjectCreationOptions?)

public static bool operator !=(SubjectCreationOptions? left, SubjectCreationOptions? right)

Parameters

left SubjectCreationOptions
right SubjectCreationOptions

Returns

bool