Skip to content

Instantly share code, notes, and snippets.

@Gerhard-ZA
Created January 20, 2021 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gerhard-ZA/3d6c7e39deefc54d570e40f78f3a1859 to your computer and use it in GitHub Desktop.
Save Gerhard-ZA/3d6c7e39deefc54d570e40f78f3a1859 to your computer and use it in GitHub Desktop.
AcumaticaPlugIn_CallExtenderService
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