/// <inheritdoc/> public async void Dispose() { // We want to immediately return before we call DisconnectAll, since we are in the list // of things that will be disconnected. await Task.Delay(1); ExtensibilityPointFactory.Dispose(); DisposalTracker.Dispose(); LongLivedMarshalByRefObject.DisconnectAll(); }
/// <inheritdoc/> public void Dispose() { DisposalTracker.Dispose(); }
/// <summary> /// Disposes the instances that are contained in the cache. /// </summary> public static void Dispose() { instances.Clear(); disposalTracker.Dispose(); }