C# Class StackExchange.Profiling.Wcf.Storage.WcfRequestInstanceStorage

Provides a mechanism for just storing the results of the profiling in the request context items This gives us just enough storage to return the results as part of the headers and no more Use this in a N-tier scenario when the calling tier understands results and is able to persist them
Inheritance: IStorage
Mostra file Open project: appacitive/Profiling

Public Methods

Method Description
GetUnviewedIds ( string user ) : List

We're not going to worry about unviewed ids for this - there should only be one method associated with this, just return it

List ( int maxResults, System.DateTime start = null, System.DateTime finish = null, ListResultsOrder orderBy = ListResultsOrder.Decending ) : IEnumerable
Load ( System.Guid id ) : MiniProfiler
Save ( MiniProfiler profiler ) : void
SetUnviewed ( string user, System.Guid id ) : void

trivial implementation - we do not do any per user stuff ... so skip

SetViewed ( string user, System.Guid id ) : void

trivial implementation

Private Methods

Method Description
GetCacheKey ( System.Guid guid ) : object

Method Details

GetUnviewedIds() public method

We're not going to worry about unviewed ids for this - there should only be one method associated with this, just return it
public GetUnviewedIds ( string user ) : List
user string
return List

List() public method

public List ( int maxResults, System.DateTime start = null, System.DateTime finish = null, ListResultsOrder orderBy = ListResultsOrder.Decending ) : IEnumerable
maxResults int
start System.DateTime
finish System.DateTime
orderBy ListResultsOrder
return IEnumerable

Load() public method

public Load ( System.Guid id ) : MiniProfiler
id System.Guid
return MiniProfiler

Save() public method

public Save ( MiniProfiler profiler ) : void
profiler MiniProfiler
return void

SetUnviewed() public method

trivial implementation - we do not do any per user stuff ... so skip
public SetUnviewed ( string user, System.Guid id ) : void
user string
id System.Guid
return void

SetViewed() public method

trivial implementation
public SetViewed ( string user, System.Guid id ) : void
user string
id System.Guid
return void