StrangeIoC
0.6.0
The IoC/Binding Framework for Unity3D and C#
|
The Binding for CommandBinder. More...
Public Member Functions | |
CommandBinding (Binder.BindingResolver resolver) | |
ICommandBinding | Once () |
Declares that the Binding is a one-off. As soon as it's satisfied, it will be unmapped. | |
ICommandBinding | InParallel () |
Declares that the bound commands will be run in parallel. More... | |
ICommandBinding | InSequence () |
Declares that the bound commands will be run as a sequence, rather than in parallel. | |
ICommandBinding | Pooled () |
Declares that the Commands generated by this binding will be pooled. | |
new ICommandBinding | Bind< T > () |
Tie this binding to a Type key. | |
new ICommandBinding | Bind (object key) |
Tie this binding to a value key, such as a string or class instance. | |
new ICommandBinding | To< T > () |
Set the Binding's value to a Type. | |
new ICommandBinding | To (object o) |
Set the Binding's value to a value, such as a string or class instance. | |
new ICommandBinding | ToName< T > () |
Qualify a binding using a marker type. | |
new ICommandBinding | ToName (object o) |
Qualify a binding using a value, such as a string or class instance. | |
new ICommandBinding | Named< T > () |
Retrieve a binding if the supplied name matches, by Type. | |
new ICommandBinding | Named (object o) |
Retrieve a binding if the supplied name matches, by value. | |
Public Member Functions inherited from strange.framework.impl.Binding | |
Binding (Binder.BindingResolver resolver) | |
virtual void | RemoveKey (object o) |
Remove a specific key from the binding. | |
virtual void | RemoveValue (object o) |
Remove a specific value from the binding. | |
virtual void | RemoveName (object o) |
Remove a name from the binding. | |
virtual IBinding | Weak () |
Properties | |
bool | isOneOff [get, set] |
bool | isSequence [get, set] |
bool | isPooled [get, set] |
Properties inherited from strange.framework.impl.Binding | |
object | key [get] |
object | value [get] |
object | name [get] |
Enum | keyConstraint [get, set] |
Enum | valueConstraint [get, set] |
Enum | nameConstraint [get, set] |
bool | isWeak [get] |
Properties inherited from strange.framework.api.IBinding | |
object | key [get] |
Get the binding''s key. | |
object | name [get] |
Get the binding's name. | |
object | value [get] |
Get the binding's value. | |
Enum | keyConstraint [get, set] |
Get or set a MANY or ONE constraint on the Key. | |
Enum | valueConstraint [get, set] |
Get or set a MANY or ONE constraint on the Value. | |
bool | isWeak [get] |
Properties inherited from strange.extensions.command.api.ICommandBinding | |
bool | isOneOff [get, set] |
Get/set the property set to true by Once() | |
bool | isSequence [get, set] |
Get/set the propterty set by InSequence() and InParallel() | |
bool | isPooled [get, set] |
Get/set the propterty set by Pooled() | |
Additional Inherited Members | |
Public Attributes inherited from strange.framework.impl.Binding | |
Binder.BindingResolver | resolver |
Protected Attributes inherited from strange.framework.impl.Binding | |
ISemiBinding | _key |
ISemiBinding | _value |
ISemiBinding | _name |
bool | _isWeak = false |
The Binding for CommandBinder.
The only real distinction between CommandBinding and Binding is the addition of Once()
, which signals that the Binding should be destroyed immediately after a single use.
|
inline |
Declares that the bound commands will be run in parallel.
Parallel is the default. There is no need to call this unless you're changing from sequence.
Implements strange.extensions.command.api.ICommandBinding.