Our web api calls IOrtcFactory.CreateClient method at the start of a web request which in turn creates an instance of IbtRealTimeSJClient and in the constructor there is an subscription to UnobservedTaskException on TaskScheduler which is not de-referenced anywhere and is causing a memory leak.
Line 75:
TaskScheduler.UnobservedTaskException += new EventHandler<UnobservedTaskExceptionEventArgs>(this.TaskScheduler_UnobservedTaskException);
Our web api calls IOrtcFactory.CreateClient method at the start of a web request which in turn creates an instance of IbtRealTimeSJClient and in the constructor there is an subscription to UnobservedTaskException on TaskScheduler which is not de-referenced anywhere and is causing a memory leak.
Line 75:
TaskScheduler.UnobservedTaskException += new EventHandler<UnobservedTaskExceptionEventArgs>(this.TaskScheduler_UnobservedTaskException);