Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 public void TestLoadServiceInfoManifestInvalidPathForAWSSDKHandler()
 {
     var handler = new XRayPipelineHandler(@"IncorrectPath.abc");
 }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 4
0
        public void TestLoadServiceHandlerManifestWithDefaultConfigurationForAWSSDKHandler()
        {
            var handler = new XRayPipelineHandler(_path);

            Assert.IsNotNull(handler.AWSServiceHandlerManifest);
        }