OwnsService Property
OwnsService
Whether the factory owns the service.
Declaration
public bool OwnsService { get; set; }
Property Value
bool |
Remarks
By default, services created via Creator are owned by the factory while services created via ServiceProvider are not, but this property can be used to force a different behavior.