/// <summary> /// Registers AWS Service Manifest resource stream. This stream would be used for all the registered <see cref="Runtime.AmazonServiceClient"/> instances. /// </summary> /// <param name="stream"> stream for manifest which contains the operation parameter whitelist configuration.</param> public static void RegisterXRayManifest(Stream stream) { _customizer = GetCustomizer(); _customizer.AWSServiceHandlerManifest = XRayPipelineHandler.GetAWSServiceManifest(stream); }
/// <summary> /// Registers X-Ray for all instances of <see cref="Runtime.AmazonServiceClient"/> with a given custom AWS Service Manifest File. /// </summary> /// <param name="path"> Absolute path to the file which contains the operation parameter whitelist configuration.</param> public static void RegisterXRayForAllServices(String path) { _customizer = GetCustomizer(); _customizer.RegisterAll = true; _customizer.AWSServiceHandlerManifest = XRayPipelineHandler.GetAWSServiceManifest(path); }