-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Please be advised that we encountered an issue when someone using this Sandboxable project with their assemblies running in the Common Data Service (Dynamics 365 CE) sandbox.
The assembly crashed because it took dependency on code from the modified Azure Storage SDK in this repo. The specific code that was cause of this is the Logger class that registers itself to the AppDomain events which are not supported by the platform.
AppDomain.CurrentDomain.DomainUnload += AppDomainUnloadEvent;
AppDomain.CurrentDomain.ProcessExit += ProcessExitEvent;
Plug-ins running in the sandbox must be stateless. See Develop IPlugin implementations as stateless Using member fields or registering to AppDomain events are not supported. Plugin logic should not rely on any AppDomain events or properties, since the internal implementation of the plugin infrastructure can change the execution behavior at any point of time that can cause failures even if the code works at some point of time.