RegisterSingletonAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Enables auto registering for the implementation type this attribute is placed on by using AddSingleton method.

[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
public class RegisterSingletonAttribute : RegisterServiceAttribute

Public Members

name description
RegisterSingletonAttribute() Creates a new instance of the attribute.
RegisterSingletonAttribute(…) Creates a new instance of the attribute for specified types.

See Also