Class ProfilerAdapter
Represents an adapter for the Profiler domain to simplify the command interface.
public class ProfilerAdapter- Inheritance
- 
      
      ProfilerAdapter
- Inherited Members
Constructors
ProfilerAdapter(IDevToolsSession)
Initializes a new instance of the ProfilerAdapter class.
public ProfilerAdapter(IDevToolsSession session)Parameters
- sessionIDevToolsSession
- The IDevToolsSession to be used with this adapter. 
Exceptions
- ArgumentNullException
- If - sessionis null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }Property Value
Methods
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandDisableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandEnableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetBestEffortCoverage(GetBestEffortCoverageCommandSettings?, CancellationToken, int?, bool)
getBestEffortCoverage
public Task<GetBestEffortCoverageCommandResponse> GetBestEffortCoverage(GetBestEffortCoverageCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetBestEffortCoverageCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetSamplingInterval(SetSamplingIntervalCommandSettings, CancellationToken, int?, bool)
setSamplingInterval
public Task<SetSamplingIntervalCommandResponse?> SetSamplingInterval(SetSamplingIntervalCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetSamplingIntervalCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Start(StartCommandSettings?, CancellationToken, int?, bool)
start
public Task<StartCommandResponse?> Start(StartCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandStartCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
StartPreciseCoverage(StartPreciseCoverageCommandSettings, CancellationToken, int?, bool)
startPreciseCoverage
public Task<StartPreciseCoverageCommandResponse> StartPreciseCoverage(StartPreciseCoverageCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandStartPreciseCoverageCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Stop(StopCommandSettings?, CancellationToken, int?, bool)
stop
public Task<StopCommandResponse> Stop(StopCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandStopCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
StopPreciseCoverage(StopPreciseCoverageCommandSettings?, CancellationToken, int?, bool)
stopPreciseCoverage
public Task<StopPreciseCoverageCommandResponse?> StopPreciseCoverage(StopPreciseCoverageCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandStopPreciseCoverageCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
TakePreciseCoverage(TakePreciseCoverageCommandSettings?, CancellationToken, int?, bool)
takePreciseCoverage
public Task<TakePreciseCoverageCommandResponse> TakePreciseCoverage(TakePreciseCoverageCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandTakePreciseCoverageCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Events
ConsoleProfileFinished
consoleProfileFinished
public event EventHandler<ConsoleProfileFinishedEventArgs>? ConsoleProfileFinishedEvent Type
ConsoleProfileStarted
consoleProfileStarted
public event EventHandler<ConsoleProfileStartedEventArgs>? ConsoleProfileStartedEvent Type
PreciseCoverageDeltaUpdate
preciseCoverageDeltaUpdate
public event EventHandler<PreciseCoverageDeltaUpdateEventArgs>? PreciseCoverageDeltaUpdate