Partilhar via


ServiceProviderEventData Construtor

Definição

Constrói o conteúdo do evento.

public ServiceProviderEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, IServiceProvider serviceProvider);
new Microsoft.EntityFrameworkCore.Diagnostics.ServiceProviderEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * IServiceProvider -> Microsoft.EntityFrameworkCore.Diagnostics.ServiceProviderEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), serviceProvider As IServiceProvider)

Parâmetros

eventDefinition
EventDefinitionBase

A definição do evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Um delegado que gera uma mensagem de log para esse evento.

serviceProvider
IServiceProvider

O IServiceProvider.

Aplica-se a