StrangeIoC  0.6.0
The IoC/Binding Framework for Unity3D and C#
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | Properties | List of all members
strange.extensions.command.api.ICommandBinding Interface Reference

Defines the form of a Binding for use with the CommandBinder. More...

Inheritance diagram for strange.extensions.command.api.ICommandBinding:
strange.framework.api.IBinding strange.extensions.command.impl.CommandBinding strange.extensions.sequencer.api.ISequenceBinding strange.extensions.sequencer.impl.SequenceBinding strange.extensions.sequencer.impl.SequenceBinding

Public Member Functions

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.api.IBinding
void RemoveKey (object o)
 Remove a specific key from the binding.
 
void RemoveValue (object o)
 Remove a specific value from the binding.
 
void RemoveName (object o)
 Remove a name from the binding.
 
IBinding Weak ()
 

Properties

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()
 
- 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]
 

Detailed Description

Defines the form of a Binding for use with the CommandBinder.

The only real distinctions between CommandBinding and Binding are:

Member Function Documentation

ICommandBinding strange.extensions.command.api.ICommandBinding.InParallel ( )

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.

Implemented in strange.extensions.command.impl.CommandBinding.


The documentation for this interface was generated from the following file: