C# Class StackExchange.Profiling.Wcf.WcfRequestProfilerProvider

wCF implementation of a profile provider. This provider uses StackExchange.Profiling.Wcf.Helpers.WcfInstanceContext to keep one MiniProfiler for each request
Inheritance: BaseProfilerProvider
Mostrar archivo Open project: appacitive/Profiling

Public Methods

Method Description
GetCurrentProfiler ( ) : MiniProfiler
Start ( ProfileLevel level ) : MiniProfiler
Stop ( bool discardResults ) : void
WcfRequestProfilerProvider ( ) : System

Private Methods

Method Description
EnsureServiceName ( MiniProfiler profiler ) : void

Makes sure 'profiler' has a Name, pulling it from route data or url.

GetProfilerName ( System.ServiceModel.OperationContext operationContext, System.ServiceModel.InstanceContext instanceContext ) : string
SetCurrentProfiler ( MiniProfiler profiler ) : void

Method Details

GetCurrentProfiler() public method

public GetCurrentProfiler ( ) : MiniProfiler
return MiniProfiler

Start() public method

public Start ( ProfileLevel level ) : MiniProfiler
level ProfileLevel
return MiniProfiler

Stop() public method

public Stop ( bool discardResults ) : void
discardResults bool
return void

WcfRequestProfilerProvider() public method

public WcfRequestProfilerProvider ( ) : System
return System