private void MessageCallback()

in dotnet-core/AWS.IoT.FleetProvisioning/Provisioning/DeviceProvisioningHandler.cs [89:111]


        private void MessageCallback(string message)
        {
            _logger.LogDebug($"Within {nameof(MessageCallback)} method.");

            var data = message.FromJson<dynamic>();

            // A response has been received from the service that contains certificate data.
            if (data.certificateId != null)
            {
                _logger.LogInformation("##### SUCCESS. SAVING KEYS TO DEVICE! #####");
                Console.WriteLine("##### SUCCESS. SAVING KEYS TO DEVICE! #####");
                AssembleCertificates(data);
            }
            else if (data.deviceConfiguration != null)
            {
                ThingName = (string) data.thingName;
                _logger.LogInformation($"##### CERT ACTIVATED AND THING {ThingName} CREATED #####");
                Console.WriteLine($"##### CERT ACTIVATED AND THING {ThingName} CREATED #####");


                ValidateCertificate();
            }
        }