/// <summary> /// Releases all managed resources used by the current instance of the <see cref="CachedAggregateStore"/> class. /// </summary> public void Dispose() { postSaveHooks.DisposeAll(); preSaveHooks.DisposeAll(); postGetHooks.DisposeAll(); preGetHooks.DisposeAll(); aggregateStore.Dispose(); }
/// <summary> /// Releases all managed resources used by the current instance of the <see cref="CachedAggregateStore"/> class. /// </summary> public void Dispose() { aggregateStore.Dispose(); memoryCache.Dispose(); }