Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Add-In/.NET Memory Management — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Add-In/.NET Memory Management

Received Response
edited Jun 13, 2022 4:11AM in General Technical Discussions 1 comment


Best practices on how to reduce memory use and prevent memory leaks in .NET applications


High memory usage and memory leaks in your Add-ins can have severe detrimental effects on the performance of the Server Console. Here are best practices for .NET Memory Management. None of these best practices are specific to Oracle Service Cloud Add-in code – they apply to all types of .NET applications.

Implement IDisposable if your class:

1. Subscribes to an event longer lived than the instance of your class. For example:

public static class Context
   // ...
   public static class Events
       public static event EventHandler ToastClicked;

public class ToastController
   // ...
   public ToastController
       Context.Events.ToastClicked += Notification_ToastAccept;
   // TODO implement IDisposable. In Dispose unsubscribe from Context.Events.ToastClicked.

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!