Class EventNameAttribute
Inheritance
EventNameAttribute
Assembly: Volo.Abp.EventBus.Abstractions.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class EventNameAttribute : Attribute, IEventNameProvider
Constructors
EventNameAttribute(string)
Declaration
public EventNameAttribute(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Properties
Name
Declaration
public virtual string Name { get; }
Property Value
Methods
GetName(Type)
Declaration
public string GetName(Type eventType)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
Returns
GetNameOrDefault(Type)
Declaration
public static string GetNameOrDefault(Type eventType)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
Returns
GetNameOrDefault<TEvent>()
Declaration
public static string GetNameOrDefault<TEvent>()
Returns
Type Parameters
Implements
Extension Methods