Compartilhar via


ServiceCharacteristics(ServiceLifetime, Boolean) Construtor

Definição

Cria um novo 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)

Parâmetros

lifetime
ServiceLifetime

O tempo de vida do serviço.

multipleRegistrations
Boolean

true se vários registros do serviço forem permitidos; false Caso contrário.

Aplica-se a