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
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
PublishingOption
Gets the publishing option to use when processing the item.
public required PublishingOption PublishingOption { get; init; }
Property Value
Methods
Equals(SubjectCreationOptions?)
public bool Equals(SubjectCreationOptions? other)
Parameters
otherSubjectCreationOptions
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 ==(SubjectCreationOptions?, SubjectCreationOptions?)
public static bool operator ==(SubjectCreationOptions? left, SubjectCreationOptions? right)
Parameters
leftSubjectCreationOptionsrightSubjectCreationOptions
Returns
operator !=(SubjectCreationOptions?, SubjectCreationOptions?)
public static bool operator !=(SubjectCreationOptions? left, SubjectCreationOptions? right)
Parameters
leftSubjectCreationOptionsrightSubjectCreationOptions