Share via


IExceptionSummarizationBuilder.AddProvider<T> Method

Definition

Adds a summary provider to the builder.

public:
generic <typename T>
 where T : class, Microsoft::Extensions::Diagnostics::ExceptionSummarization::IExceptionSummaryProvider Microsoft::Extensions::Diagnostics::ExceptionSummarization::IExceptionSummarizationBuilder ^ AddProvider();
public Microsoft.Extensions.Diagnostics.ExceptionSummarization.IExceptionSummarizationBuilder AddProvider<T> () where T : class, Microsoft.Extensions.Diagnostics.ExceptionSummarization.IExceptionSummaryProvider;
abstract member AddProvider : unit -> Microsoft.Extensions.Diagnostics.ExceptionSummarization.IExceptionSummarizationBuilder (requires 'T : null and 'T :> Microsoft.Extensions.Diagnostics.ExceptionSummarization.IExceptionSummaryProvider)
Public Function AddProvider(Of T As {Class, IExceptionSummaryProvider}) () As IExceptionSummarizationBuilder

Type Parameters

T

The type of the provider.

Returns

The current instance.

Applies to