The Update Source Code operation synchronizes the source code you added in the .NET IDE with the definition of the extension elements. This operation involves the following steps:
Generate the template files according to the definition of your actions, structures, and entities.
If one of these files does not exist as an extension resource, then this operation implicitly adds the file as a resource, except when the extension does not contain any source files at all.
Update the extension implementation files, according to the extension definition in Integration Studio.
Any changes you have made directly in these files are overridden in this step.
<extension_name>.csfile. This operation updates the signatures of the methods with the action definition, but it is applied only to the signatures: the body of the methods remains as is.
Any changes you have made in the signatures of the methods directly in the IDE are overridden in this step.
How to update the extension source code
In the File menu or Toolbar, click Update Source Code or 1-Click Publish .
The merge algorithm is responsible for updating the source code with the changes made in the extension definition. The next steps describe the merge algorithm:
Scan the source files that contain the signatures of the actions and, by name, verifies whether the signatures in these files are according to the action definition in Integration Studio.
To perform this verification, Integration Studio compares the content of the actions template, generated previously, and
If the signature in the template is the same as in the source file, then proceed to next action.
If the signature in the template is different from the source file, then update
<extension_name>.cswith the new definition as defined in the template.
If the signature in the template does not exist in the source file, then add the new definition as defined in the template to
In some situations, the Merge algorithm might not be able to establish the correspondence between an element in the template file and in the source files, for example if you change an action name. In this situation, you should use the Compare with Template operation.