Share via


ServiceProviderEventData Constructor

Definition

Constructs the event payload.

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)

Parameters

eventDefinition
EventDefinitionBase

The event definition.

messageGenerator
Func<EventDefinitionBase,EventData,String>

A delegate that generates a log message for this event.

serviceProvider
IServiceProvider

The IServiceProvider.

Applies to