共用方式為


CoreLoggerExtensions.ServiceProviderCreated 方法

定義

ServiceProviderCreated事件的記錄。

public static void ServiceProviderCreated (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> diagnostics, IServiceProvider serviceProvider);
static member ServiceProviderCreated : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> * IServiceProvider -> unit
<Extension()>
Public Sub ServiceProviderCreated (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Infrastructure), serviceProvider As IServiceProvider)

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

要使用的診斷記錄器。

serviceProvider
IServiceProvider

服務提供者。

適用於