Example #1
0
        public static async Task Main(string[] args)
        {
            var authenticationResult = await Authenticate();

            if (authenticationResult?.AccessToken == null)
            {
                Console.WriteLine($"Failed to authenticate with VeracityAppId {VeracityAppId} and ApiClientId {VeracityApiClientId}.");
                Console.WriteLine("Check whether the VeracityAppId and ApiClientId are correct.");
                Console.WriteLine("Press any key to exit.");
                Console.ReadKey();
                return;
            }

            await PiSampler.Run(authenticationResult.AccessToken);
        }
Example #2
0
        static async Task Main(string[] args)
        {
            var authenticationResult = await Authenticate();

            if (authenticationResult?.AccessToken == null)
            {
                Console.WriteLine($"Failed to authenticate with OneComputeAppId {OneComputeAppId}.");
                Console.WriteLine("Check whether the OneComputeAppId and your OneComputeClientSecret are correct.");
                Console.WriteLine("Press any key to exit.");
                Console.ReadKey();
                return;
            }

            await PiSampler.Run(authenticationResult.AccessToken);
        }