Class ContextKeyAttribute
- Namespace
- Cratis.Chronicle.Keys
- Assembly
- Cratis.Chronicle.dll
Represents metadata for defining which property on the event to use as key.
[AttributeUsage(AttributeTargets.Method)]
public sealed class ContextKeyAttribute : Attribute
- Inheritance
-
ContextKeyAttribute
- Inherited Members
- Extension Methods
Remarks
Initializes a new instance of the KeyAttribute class.
Constructors
ContextKeyAttribute(string)
Represents metadata for defining which property on the event to use as key.
public ContextKeyAttribute(string property)
Parameters
propertystringProperty to use.
Remarks
Initializes a new instance of the KeyAttribute class.
Properties
Property
Gets the property to use as key.
public string Property { get; }