Class SingletonModuleAttribute
- Namespace
- Prefrontal.Attributes
- Assembly
- Prefrontal.Core.dll
Specifies that there can only be one instance of this module type per Agent.
Example:
[SingletonModule]
public class MySingletonModule : Module
{
// ...
}
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class SingletonModuleAttribute : Attribute
- Inheritance
-
SingletonModuleAttribute
- Inherited Members
- Extension Methods