Method CreateBindableAction
- Namespace
- SodaFlow.Bindable.ObjectModel
- Assembly
- SodaFlow.Bindable.ObjectModel.dll
CreateBindableAction<T>(StreamSink<T>, Cell<bool>?)
Shows a sink that exists as a command that carries its
CommandParameter.
public IBindableAction<T> CreateBindableAction<T>(StreamSink<T> firingsStreamSink, Cell<bool>? isEnabledCell = null) where T : notnull
Parameters
firingsStreamSinkStreamSink<T>isEnabledCellCell<bool>
Returns
Type Parameters
T
Remarks
For a StreamSink<Unit> the compiler selects the overload with
no type parameter. To get the overload with a parameter for a unit sink,
write ToBindableAction<Unit>(...).
CreateBindableAction(StreamSink<Unit>, Cell<bool>?)
Shows a sink that exists as a command with no parameter. Use this when you build the graph on the sink and then attach the command to it.
public IBindableAction CreateBindableAction(StreamSink<Unit> firingsStreamSink, Cell<bool>? isEnabledCell = null)
Parameters
firingsStreamSinkStreamSink<Unit>isEnabledCellCell<bool>
Returns
CreateBindableAction<T>(StreamSink<Maybe<T>>, Cell<bool>?)
Shows a sink that exists as a command with an optional parameter. The
CommandParameter can be null, an object of type
T, or a Maybe<T>.
public IBindableAction<Maybe<T>> CreateBindableAction<T>(StreamSink<Maybe<T>> firingsStreamSink, Cell<bool>? isEnabledCell = null) where T : notnull
Parameters
firingsStreamSinkStreamSink<Maybe<T>>isEnabledCellCell<bool>
Returns
- IBindableAction<Maybe<T>>
Type Parameters
T