-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathProviderEvents.cs
41 lines (35 loc) · 1.13 KB
/
ProviderEvents.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System.Collections.Generic;
using OpenFeature.Constant;
namespace OpenFeature.Model
{
/// <summary>
/// The EventHandlerDelegate is an implementation of an Event Handler
/// </summary>
public delegate void EventHandlerDelegate(ProviderEventPayload? eventDetails);
/// <summary>
/// Contains the payload of an OpenFeature Event.
/// </summary>
public class ProviderEventPayload
{
/// <summary>
/// Name of the provider.
/// </summary>
public string? ProviderName { get; set; }
/// <summary>
/// Type of the event
/// </summary>
public ProviderEventTypes Type { get; set; }
/// <summary>
/// A message providing more information about the event.
/// </summary>
public string? Message { get; set; }
/// <summary>
/// A List of flags that have been changed.
/// </summary>
public List<string>? FlagsChanged { get; set; }
/// <summary>
/// Metadata information for the event.
/// </summary>
public ImmutableMetadata? EventMetadata { get; set; }
}
}