RegisterServiceAttribute.AsSelf property
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Register the type itself as concrete implementation for itself in addition to any Types specified, or the type's auto-detected interface. To register only itself with no interfaces, pass an empty array as Types: []. Note that AsSelf cannot be used with keyed service registrations and Key property will be ignored.
public bool AsSelf { get; set; }
See Also
- class RegisterServiceAttribute