public KeyManagementServiceCache(
     IKeyManagementService keyManagementService,
     IDataKeyCache dataKeyCache,
     IDecryptKeyCache decryptKeyCache)
 {
     _dataKeyCache         = dataKeyCache;
     _decryptKeyCache      = decryptKeyCache;
     _keyManagementService = keyManagementService;
 }
        public static void UseAwsKeyManagementServiceSerializerWithCache(this IReceiveEndpointConfigurator configurator,
                                                                         IKeyManagementService amazonKeyManagementService,
                                                                         IEncryptionContextBuilder encryptionContextBuilder,
                                                                         string kmsKeyId, IDataKeyCache dataKeyCache, IDecryptKeyCache decryptKeyCache)
        {
            var keyManagementServiceCache =
                new KeyManagementServiceCache(amazonKeyManagementService, dataKeyCache, decryptKeyCache);

            configurator.UseAwsKeyManagementServiceSerializer(keyManagementServiceCache, encryptionContextBuilder,
                                                              kmsKeyId);
        }