Freigeben über


ITraceWriterExtensions Class

Represents an extension methods for ITraceWriter.

Inheritance Hierarchy

System.Object
  System.Web.Http.Tracing.ITraceWriterExtensions

Namespace:  System.Web.Http.Tracing
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class ITraceWriterExtensions
'Usage
public static class ITraceWriterExtensions
[ExtensionAttribute]
public ref class ITraceWriterExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ITraceWriterExtensions =  class end
public final class ITraceWriterExtensions

The ITraceWriterExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member Debug(ITraceWriter, HttpRequestMessage, String, Exception) Provides a set of methods and properties that help debug your code with the specified writer, request, category and exception.
Public methodStatic member Debug(ITraceWriter, HttpRequestMessage, String, String, Object[]) Provides a set of methods and properties that help debug your code with the specified writer, request, category, exception, message format and argument.
Public methodStatic member Debug(ITraceWriter, HttpRequestMessage, String, Exception, String, Object[]) Provides a set of methods and properties that help debug your code with the specified writer, request, category, exception, message format and argument.
Public methodStatic member Error(ITraceWriter, HttpRequestMessage, String, Exception) Displays an error message in the list with the specified writer, request, category and exception.
Public methodStatic member Error(ITraceWriter, HttpRequestMessage, String, String, Object[]) Displays an error message in the list with the specified writer, request, category, message format and argument.
Public methodStatic member Error(ITraceWriter, HttpRequestMessage, String, Exception, String, Object[]) Displays an error message in the list with the specified writer, request, category, exception, message format and argument.
Public methodStatic member Fatal(ITraceWriter, HttpRequestMessage, String, Exception) Displays an error message in the ITraceWriterExtensions class with the specified writer, request, category and exception.
Public methodStatic member Fatal(ITraceWriter, HttpRequestMessage, String, String, Object[]) Displays an error message in the ITraceWriterExtensions class with the specified writer, request, category and message format and argument.
Public methodStatic member Fatal(ITraceWriter, HttpRequestMessage, String, Exception, String, Object[]) Displays an error message in the ITraceWriterExtensions class with the specified writer, request, category and exception, message format and argument.
Public methodStatic member Info(ITraceWriter, HttpRequestMessage, String, Exception) Displays the details in the [System.Web.Http.Tracing.ITraceWriterExtensions].
Public methodStatic member Info(ITraceWriter, HttpRequestMessage, String, String, Object[]) Displays the details in the [System.Web.Http.Tracing.ITraceWriterExtensions].
Public methodStatic member Info(ITraceWriter, HttpRequestMessage, String, Exception, String, Object[]) Displays the details in the [System.Web.Http.Tracing.ITraceWriterExtensions].
Public methodStatic member Trace(ITraceWriter, HttpRequestMessage, String, TraceLevel, Exception) Indicates the trace listeners in the Listeners collection.
Public methodStatic member Trace(ITraceWriter, HttpRequestMessage, String, TraceLevel, String, Object[]) Indicates the trace listeners in the Listeners collection.
Public methodStatic member Trace(ITraceWriter, HttpRequestMessage, String, TraceLevel, Exception, String, Object[]) Indicates the trace listeners in the Listeners collection.
Public methodStatic member TraceBeginEnd Traces both a begin and an end trace around a specified operation.
Public methodStatic member TraceBeginEndAsync(ITraceWriter, HttpRequestMessage, String, TraceLevel, String, String, Action<TraceRecord>, Func<Task>, Action<TraceRecord>, Action<TraceRecord>) Traces both a begin and an end trace around a specified operation.
Public methodStatic member TraceBeginEndAsync<TResult>(ITraceWriter, HttpRequestMessage, String, TraceLevel, String, String, Action<TraceRecord>, Func<Task<TResult>>, Action<TraceRecord, TResult>, Action<TraceRecord>) Traces both a begin and an end trace around a specified operation.
Public methodStatic member Warn(ITraceWriter, HttpRequestMessage, String, Exception) Indicates the warning level of execution.
Public methodStatic member Warn(ITraceWriter, HttpRequestMessage, String, String, Object[]) Indicates the warning level of execution.
Public methodStatic member Warn(ITraceWriter, HttpRequestMessage, String, Exception, String, Object[]) Indicates the warning level of execution.

Top

Remarks

No content here will be updated; please do not add material here.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http.Tracing Namespace