Condividi tramite


ServiceCharacteristics(ServiceLifetime, Boolean) Costruttore

Definizione

Crea un nuovo 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)

Parametri

lifetime
ServiceLifetime

Durata del servizio.

multipleRegistrations
Boolean

true se sono consentite più registrazioni del servizio; false Altrimenti.

Si applica a