Class DontAutoLoadAttribute
Prevents the marked module from being loaded automatically.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class DontAutoLoadAttribute : Attribute
- Inheritance
-
objectAttributeDontAutoLoadAttribute
Remarks
This attribute tells CommandService to ignore the marked module from being loaded automatically (e.g. the AddModulesAsync(Assembly, IServiceProvider) method). If a non-public module marked with this attribute is attempted to be loaded manually, the loading process will also fail.