I´m creating a plugin (sync and post-operation) that will be run perhaps 100 days per day. It contains approx 15 methods.
I´m struggling to understand if it best if my methods are Static or instance methods in this case?
Thanks in advance!
Hello,
I would say you should use instance methods but in the case of plugins, it should not matter. Anyway, it's up to you to decide. You can check the following - docs.microsoft.com/.../static-classes-and-static-class-members
Hi Kranis,
It's prefered to writhe the execute methods as a stateless operation.
Take a look here: docs.microsoft.com/.../develop-iplugin-implementations-stateless
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
DAnny3211 134
Daniyal Khaleel 115
Abhilash Warrier 70 Super User 2025 Season 2