Managed Code

 

 

 

The Managed Code job step type is used to build dynamic job steps that compile and execute blocks of code written in C# or Visual Basic. 

 

The code you write for use in this job step can make use of all system assemblies in the .NET Framework Runtime folder as well as all .NET assemblies in the application folder.  Because the code you are compiling and executing is loaded within the current application domain you have the added benefit of being able to directly manipulate the work object to perform advanced tasks such as manipulating job steps or job parameter values.  If you need access to other assemblies and you do not need to directly manipulate the Work object you should use the Managed Assembly job step.

 

This job step is currently included in pasUnity in an experimental capacity.  The code you develop for use with this job step is not supported.

 


This job step type extends basic job step functionality.  For details common to all job step types click here.


 

In addition to the common attributes shared by all job steps this job step type has the following attributes:

Language: The language (either Visual C# or Visual Basic) used to write code blocks.

Compile: This button compiles the source code and checks the code for errors.

Reset: This button resets the code to the default code that comes with the job step.

Apply Macros Before Compiling Code: Allows for macro substitution in the managed code script block before the block is compiled and executed.

Echo Code: Check if you wish to save the compiled code snippet to the execution log.

Managed Code <Body>: The code developed in the previously specified language to be dynamically compiled and executed at run time.

After making changes be sure to press the Update button to save your changes.

 


Copyright © 2024 pasUNITY, Inc.

 

Send comments on this topic.



Created with an evaluation copy of HelpSmith.
To remove this notice, you should purchase the full version of the product.