Class LogAdapter
Represents an adapter for the Log domain to simplify the command interface.
public class LogAdapter
- Inheritance
-
LogAdapter
- Inherited Members
Constructors
LogAdapter(IDevToolsSession)
Initializes a new instance of the LogAdapter class.
public LogAdapter(IDevToolsSession session)
Parameters
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Exceptions
- ArgumentNullException
If
session
is null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
Methods
Clear(ClearCommandSettings?, CancellationToken, int?, bool)
clear
public Task<ClearCommandResponse?> Clear(ClearCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ClearCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DisableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StartViolationsReport(StartViolationsReportCommandSettings, CancellationToken, int?, bool)
startViolationsReport
public Task<StartViolationsReportCommandResponse?> StartViolationsReport(StartViolationsReportCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StartViolationsReportCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StopViolationsReport(StopViolationsReportCommandSettings?, CancellationToken, int?, bool)
stopViolationsReport
public Task<StopViolationsReportCommandResponse?> StopViolationsReport(StopViolationsReportCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StopViolationsReportCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
EntryAdded
entryAdded
public event EventHandler<EntryAddedEventArgs>? EntryAdded