internal void ReleaseResources() { Callbacks.Dispose(); Callbacks = null; Owner = null; Dispatcher = null; RelationInfo.Do(x => x.Release()); RelationInfo = null; SplashScreen.Content = null; SplashScreen = null; InternalThread = null; #if DEBUGTEST || DEBUG WaitEvent = null; #endif }
internal void ReleaseResources() { InternalThread = null; Callbacks.Dispose(); Callbacks = null; Owner = null; Dispatcher = null; RelationInfo.Do(x => x.Release()); RelationInfo = null; SplashScreen.Content = null; SplashScreen = null; #if DEBUGTEST || DEBUG WaitEvent = null; if (closingTask != null && !closingTask.Task.IsCompleted) { closingTask.SetResult(true); } #endif }