Add environment checking method to c# api client (lib)