.NET (C#) state machine and actor framework for robots or machine automation