Skip to content

CommandSignal class

Attributes: [DebuggerDisplay("{DebuggerDisplay,nq}")]

Defined in

Namespace: ReactiveUI.Primitives.Signals Assembly: ReactiveUI.Primitives.Core.dll Full name: ReactiveUI.Primitives.Signals.CommandSignal<T> Modifiers: public sealed

Summary

View source

Minimal reactive command that gates execution and publishes result, fault, and running state streams.

Applies to

net10.0, net10.0, net10.0-desktop1.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-browserwasm1.0, net9.0, net9.0, net9.0-desktop1.0, net9.0-desktop1.0, net9.0-browserwasm1.0, net9.0-browserwasm1.0, net8.0, net8.0, net8.0-ios17.5, net8.0-macos14.5, net8.0-macos14.5, net8.0-macos14.2, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-maccatalyst17.5, net8.0-tvos17.2, net8.0-tvos17.2, net8.0-ios17.5, netstandard2.1, netstandard2.1, net481, net462, net462, net481

Class hierarchy
classDiagram
class CommandSignal~T~
class IObservable~TResult~ {
    <>
}
IObservable~TResult~ <|.. CommandSignal~T~
class IDisposable {
    <>
}
IDisposable <|.. CommandSignal~T~

Implements: IObservable, IDisposable

Constructors

NameSummary
.ctorInitializes a new instance of the [CommandSignal](# class.

Properties

NameSummary
ResultsGets the successful command results.
FaultsGets command execution failures as values before the returned task rethrows them.
IsRunningGets a state signal that is true while an execution is in flight.
CanRunGets a value indicating whether the command can currently run.

Methods

NameSummary
ExecuteAsyncExecutes the command if allowed and publishes the result or fault.
DisposeExecutes the Dispose operation.
SubscribeSubscribes to successful command results.
Inherited members