Exemplo n.º 1
0
        /// <inheritdoc/>
        protected override void OnOperationStart(OperationStartDiagnosticData data)
        {
            if (data is null)
            {
                return;
            }

            var builder = _operationBuilders.GetOrAdd(data.Operation, k => new IndentingStringBuilder());

            builder.AppendFormattedLine(TracerMessages.ResolveOperationStarting);
            builder.AppendLine(TracerMessages.EntryBrace);
            builder.Indent();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Handles the event raised when a resolve operation starts.
 /// </summary>
 /// <param name="data">
 /// Diagnostic data associated with the event.
 /// </param>
 /// <remarks>
 /// <para>
 /// Derived classes can override this method and perform actions based
 /// on the event. By default, the base class does nothing.
 /// </para>
 /// </remarks>
 protected virtual void OnOperationStart(OperationStartDiagnosticData data)
 {
 }