Current implementation does not support contexts which aren't be changed during execution. This approach could help in C# (and other languages as well) to pass dependencies dynamically.
This implementation requires to change Runnable classes and StandardExecutor class (I would prefer to make a subclass) and factories as well.
Implementations
Two-approach to implement the other parts:
Factory class passes this context object to Executors. This context object is created by user. (note: I am considering this)
context object goes through combinators and selectors and ... (note: too complex and I don't think this would be very natural way)
other?
Changes in Runnable and Executor:
[ ] create RunnableWithContext abstract class and overload Run method with context parameter
[ ] executor will pass this context object to runnable at query runtime
Current implementation does not support contexts which aren't be changed during execution. This approach could help in C# (and other languages as well) to pass dependencies dynamically.
This implementation requires to change
Runnable
classes andStandardExecutor
class (I would prefer to make a subclass) and factories as well.Implementations
Two-approach to implement the other parts:
Factory
class passes this context object to Executors. This context object is created by user. (note: I am considering this)Changes in
Runnable
andExecutor
:RunnableWithContext
abstract class and overload Run method withcontext
parametercontext
object to runnable at query runtime