forked from PeterWaher/IoTGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCollectionRepairedEventArgs.cs
More file actions
38 lines (34 loc) · 1.2 KB
/
Copy pathCollectionRepairedEventArgs.cs
File metadata and controls
38 lines (34 loc) · 1.2 KB
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
using System;
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Text;
namespace Waher.Persistence
{
/// <summary>
/// Event handler for collection repaired events.
/// </summary>
/// <param name="Sender">Sender of event.</param>
/// <param name="e">Event arguments.</param>
public delegate void CollectionRepairedEventHandler(object Sender, CollectionRepairedEventArgs e);
/// <summary>
/// Event arguments for collection repaired events.
/// </summary>
public class CollectionRepairedEventArgs : CollectionEventArgs
{
private readonly FlagSource[] flagged;
/// <summary>
/// Event arguments for collection repaired events.
/// </summary>
/// <param name="Collection">Collection</param>
/// <param name="Flagged">If the collection have been flagged as corrupt, and from what stack traces. Is null, if collection not flagged.</param>
public CollectionRepairedEventArgs(string Collection, FlagSource[] Flagged)
: base(Collection)
{
this.flagged = Flagged;
}
/// <summary>
/// If the collection have been flagged as corrupt, and from what stack traces. Is null, if collection not flagged.
/// </summary>
public FlagSource[] Flagged => this.flagged;
}
}