Method Clear
Clear(MiniProfiler)
Clears the internal memory cache of the provided StackExchange.Profiling.MiniProfiler instance if it uses StackExchange.Profiling.Storage.MemoryCacheStorage.
Declaration
public static void Clear(this MiniProfiler miniProfiler)
Parameters
Type | Name | Description |
---|---|---|
MiniProfiler | miniProfiler | The StackExchange.Profiling.MiniProfiler instance whose cache should be cleared. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if the underlying storage is not StackExchange.Profiling.Storage.MemoryCacheStorage, or if the internal cache cannot be accessed. |