State class is now used to pass data to .Net agent.