a sample code to let .NET use acs rest api