raol / amazon-sqs-net-extended-client-lib

Extension to Amazon SQS that adds support for sending and receiving messages greater than 256K
Apache License 2.0
39 stars 33 forks source link

WithAlwaysThroughS3 extension does not set property #13

Closed nrcmkoh closed 5 years ago

nrcmkoh commented 5 years ago

When I do this, the client always sends messages to S3:

client = new AmazonSQSExtendedClient(sqsClient,
                new ExtendedClientConfiguration()
                    .WithLargePayloadSupportEnabled(s3Client, s3Bucket)
                    .WithAlwaysThroughS3(false)
                    .WithRetainS3Messages(false));

When I did this, the configuration had the AlwaysThroughS3 property set to true:

var config = new ExtendedClientConfiguration()
                    .WithLargePayloadSupportEnabled(s3Client, s3Bucket)
                    .WithAlwaysThroughS3(false)
                    .WithRetainS3Messages(false);

To resolve, I ended up not explicitly calling the extensions, and accepted the defaults instead.