INNER CODE UNIT · C#

OnCompleted

TurnerSoftware/MongoFramework · src/MongoFramework.Profiling.MiniProfiler/MiniProfilerDiagnosticListener.cs:25

		public void OnCompleted() { /* OnCompleted is never called in MongoFramework as commands have a state */ }

		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)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…