internal AmqpAuthenticationRefresher(IDeviceIdentity deviceIdentity, AmqpIotCbsLink amqpCbsLink) { _amqpIotCbsLink = amqpCbsLink; _connectionString = deviceIdentity.IotHubConnectionString; _audience = deviceIdentity.Audience; _amqpIotCbsTokenProvider = new AmqpIotCbsTokenProvider(_connectionString); if (Logging.IsEnabled) { Logging.Associate(this, deviceIdentity, nameof(DeviceIdentity)); Logging.Associate(this, amqpCbsLink, nameof(_amqpIotCbsLink)); } }