Skip to the content.

Environment Dependent Values

Downloads The code samples used in this user guide have been made available in the Be.Stateless.BizTalk.Factory.Samples GitHub repository.

Having different configuration property values with each target deployment environment is a typical deployment scenario, which is usually achieved through configuration files that vary between environments. The equivalent of the Microsoft BizTalk Server® configuration file is its management database, which is populated primarily when importing XML bindings. As we have seen, the XML bindings to be imported during deployment are generated based on the C# code-first bindings written with the Binding DSL configuration API of BizTalk.Factory.

Instead of having different configuration files we need to produce XML binding files according to their target deployment environments. To support this simple scenario, BizTalk.Factory’s Binding DSL provides three static helper classes that interact with ech other:

Remark The developer is obviously free to define his own custom list of target environments, but then he would have to redefine his own equivalent of the TargetEnvironment and EnvironmentDependentValue classes.