Skip to main content

IStorage

Provides saving and loading ServiceStack.MiniProfiler.MiniProfilers to a storage medium.

Assembly: ServiceStack.NetFramework.dll
View Source
Declaration
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
Declaration
void Save(MiniProfiler profiler)
Parameters
TypeNameDescription
ServiceStack.MiniProfiler.MiniProfilerprofilerThe 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
Declaration
MiniProfiler Load(Guid id)
Returns

ServiceStack.MiniProfiler.MiniProfiler

Parameters
TypeName
System.Guidid

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
Declaration
List<Guid> GetUnviewedIds(string user)
Returns

System.Collections.Generic.List<System.Guid>

Parameters
TypeNameDescription
System.StringuserUser identified by the current MiniProfiler.Settings.UserProvider.

|