INNER CODE UNIT · C#
OnError
TurnerSoftware/MongoFramework · src/MongoFramework.Profiling.MiniProfiler/MiniProfilerDiagnosticListener.cs:27
public void OnError(Exception error) => Trace.WriteLine(error);
public void OnNext(DiagnosticCommand value)
{
if (StackExchange.Profiling.MiniProfiler.Current == null)
{
return;
}
if (value.CommandState == CommandState.Start)
{
if (value is ReadDiagnosticCommand readCommand)
{
OnNextReadCommand(readCommand);
}
else if (value is WriteDiagnosticCommandBase writeCommandBase)
{
OnNextWriteCommand(writeCommandBase);