alex-ks / ev3dev_csharp

C# Library for Lego Mindstorms EV3 (running on ev3dev linux)
4 stars 0 forks source link

Implement property modifiers #1

Open alex-ks opened 5 years ago

alex-ks commented 5 years ago

For now properties are read before all actions, but their modification is not controlled by the framework. This, with the fact that the order of actions executions is not defined in general, makes the modification of model's properties complicated. Think about a way to modify some properties safely in some strictly definded order.

alex-ks commented 5 years ago

In current design, there is only one way to get the state of the model in strictly defined order - to disable lazy properties loading to get them cached in the beginning of each iteration and to pass these values with [FromSource] attribute.