RegisterScopedAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

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

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

Public Members

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

See Also