Пример #1
0
        private void configureJSONReceivePipeline(ReceivePipelineWrapper pipeline, string rootNode, string namespaceUri)
        {
            string configPath = Path.Combine(TestContext.DeploymentDirectory, "pipelineconfig.xml");

            var configDoc = XDocument.Load(configPath);

            configDoc.Descendants("RootNode").First().SetValue(rootNode);
            configDoc.Descendants("RootNodeNamespace").First().SetValue(namespaceUri);

            configDoc.Save(configPath);

            pipeline.ApplyInstanceConfig(configPath);
        }
Пример #2
0
 /// <summary>
 /// Applies per-instance configuration to the pipeline
 /// </summary>
 /// <param name="file">XML file with the configuration</param>
 /// <returns>The configured pipeline</returns>
 public ReceivePipelineWrapper WithInstanceConfig(string file)
 {
     _pipeline.ApplyInstanceConfig(file);
     return(this);
 }