RegisterTransientAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

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

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

Public Members

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

See Also