Agent Type switch in the C# code.