RegisterServiceAttribute.SkipExisting property
Gets or sets a value indicating whether to skip registration if a registration for the service already exists (default true), e.g. use TryAddSingleton etc. methods instead of AddSingleton.
public bool SkipExisting { get; set; }
See Also
- class RegisterServiceAttribute