public void Customize()

in sdk/src/Handlers/AwsSdk/Internal/XRayPipelineHandler.cs [734:754]


        public void Customize(Type serviceClientType, RuntimePipeline pipeline)
        {
            if (serviceClientType.BaseType != typeof(AmazonServiceClient))
                return;

            bool addCustomization = this.RegisterAll;

            if (!addCustomization)
            {
                addCustomization = ProcessType(serviceClientType, addCustomization);
            }

            if (addCustomization && AWSServiceHandlerManifest == null)
            {
                pipeline.AddHandlerBefore<RetryHandler>(new XRayPipelineHandler());
            }
            else if (addCustomization && AWSServiceHandlerManifest != null)
            {
                pipeline.AddHandlerBefore<RetryHandler>(new XRayPipelineHandler(AWSServiceHandlerManifest)); // Custom AWS Manifest file path/stream provided
            }
        }