Created
January 20, 2021 12:39
-
-
Save Gerhard-ZA/3d6c7e39deefc54d570e40f78f3a1859 to your computer and use it in GitHub Desktop.
AcumaticaPlugIn_CallExtenderService
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using PX.Data; | |
using Customization; | |
namespace AddingServiceReferences | |
{ | |
//Customization plugin is used to execute custom actions after customization project was published | |
public class myServiceAdd : CustomizationPlugin | |
{ | |
//This method executed right after website files were updated, but before website was restarted | |
//Method invoked on each cluster node in cluster environment | |
//Method invoked only if runtimecompilation is enabled | |
//Do not access custom code published to bin folder, it may not be loaded yet | |
public override void OnPublished() | |
{ | |
this.WriteLog("OnPublished Event"); | |
ExtenderServicesplugIn = PXGraph.CreateInstance<ExtenderServices>(); | |
plugIn.updateWebConfig(); | |
} | |
//This method executed after customization was published and website was restarted. | |
public override void UpdateDatabase() | |
{ | |
this.WriteLog("UpdateDatabase Event"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment