Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.98 KB

scripting-using-external-assemblies.md

File metadata and controls

35 lines (27 loc) · 1.98 KB
description title ms.custom ms.date ms.service ms.reviewer ms.suite ms.topic
Learn more about: Scripting Using External Assemblies
Scripting Using External Assemblies
06/08/2017
biztalk-server
article

Scripting Using External Assemblies

Scripting with external assemblies is the preferred way to use scripting in Microsoft [!INCLUDEbtsBizTalkServerNoVersion]. External assemblies provide several advantages:

  • Easy code sharing

  • Simpler maintenance

  • Easier debugging

Note

Test Map fails if the Scripting functoid uses an external assembly which is not registered in the GAC. It works if the external assembly is in the same bin folder as the current project's assembly (placed after build).

Re-using the script only requires setting the Script property of the Scripting functoid. Because the script is stored outside of the map, you can modify the script without changing the map. And you can use the full array of [!INCLUDEbtsVStudioNoVersion] debugging tools to ensure your script runs correctly.

Warning

The code in the external assembly must be thread-safe. Under stress conditions, multiple instances of a map may be running concurrently.

For a sample function housed in an external assembly, see XML Tools (BizTalk Server Samples Folder).

See Also

Scripting Functoid
Scripting Using Inline C#, JScript .NET, and Visual Basic .NET
Scripting Using Inline XSLT and XSLT Call Templates
How to Add Scripting Functoids to a Map
How to Configure the Scripting Functoid