ServiceCharacteristics(ServiceLifetime, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.