Skip to content

RegisterSingletonAttribute constructor (1 of 2)

Creates a new instance of the attribute.

public RegisterSingletonAttribute()

See Also


RegisterSingletonAttribute constructor (2 of 2)

Creates a new instance of the attribute for the specified types.

public RegisterSingletonAttribute(params Type[] types)
parameter description
types Service types.

Exceptions

exception condition
ArgumentNullException Thrown if types is null.

See Also