IStorage
Provides saving and loading ServiceStack.MiniProfiler.MiniProfilers to a storage medium.
Assembly: ServiceStack.NetFramework.dll
View Source
public interface IStorage
Methods
Save(MiniProfiler)
Stores <code data-dev-comment-type="paramref" class="paramref">profiler</code> under its ServiceStack.MiniProfiler.MiniProfiler.Id.
Should also ensure the profiler is stored as being un viewed by its profiling <xref href="ServiceStack.MiniProfiler.MiniProfiler.User" data-throw-if-not-resolved="false"></xref>.
View Source
void Save(MiniProfiler profiler)
Parameters
Type | Name | Description |
---|---|---|
ServiceStack.MiniProfiler.MiniProfiler | profiler | The results of a profiling session. |
Should also ensure the profiler is stored as being un viewed by its profiling <xref href="ServiceStack.MiniProfiler.MiniProfiler.User" data-throw-if-not-resolved="false"></xref>.
|
Load(Guid)
Returns a ServiceStack.MiniProfiler.MiniProfiler from storage based on <code data-dev-comment-type="paramref" class="paramref">id</code>, which should map to ServiceStack.MiniProfiler.MiniProfiler.Id.
Should also update that the resulting profiler has been marked as viewed by its profiling <xref href="ServiceStack.MiniProfiler.MiniProfiler.User" data-throw-if-not-resolved="false"></xref>.
View Source
MiniProfiler Load(Guid id)
Returns
ServiceStack.MiniProfiler.MiniProfiler
Parameters
Type | Name |
---|---|
System.Guid | id |
GetUnviewedIds(String)
Returns a list of ServiceStack.MiniProfiler.MiniProfiler.Ids that haven't been seen by <code data-dev-comment-type="paramref" class="paramref">user</code>.
View Source
List<Guid> GetUnviewedIds(string user)
Returns
System.Collections.Generic.List<System.Guid>
Parameters
Type | Name | Description |
---|---|---|
System.String | user | User identified by the current MiniProfiler.Settings.UserProvider. |
|