szabototo89 / CodeSharper

Refactoring tool, written in C# and using TDD for developing
2 stars 0 forks source link

[core] Add context and running queries #51

Closed szabototo89 closed 9 years ago

szabototo89 commented 9 years ago

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:

  1. Factory class passes this context object to Executors. This context object is created by user. (note: I am considering this)
  2. context object goes through combinators and selectors and ... (note: too complex and I don't think this would be very natural way)
  3. other?

Changes in Runnable and Executor:

szabototo89 commented 9 years ago

It's done. See C# section.