ServiceCharacteristics(ServiceLifetime, Boolean) Constructor

Definition

Creates a new ServiceCharacteristics struct.

public ServiceCharacteristics (Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime, bool multipleRegistrations = false);
new Microsoft.EntityFrameworkCore.Infrastructure.ServiceCharacteristics : Microsoft.Extensions.DependencyInjection.ServiceLifetime * bool -> Microsoft.EntityFrameworkCore.Infrastructure.ServiceCharacteristics
Public Sub New (lifetime As ServiceLifetime, Optional multipleRegistrations As Boolean = false)

Parameters

lifetime
ServiceLifetime

The service lifetime.

multipleRegistrations
Boolean

true if multiple registrations of the service is allowed; false otherwise.

Applies to