-
-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathManualStackingInfo.cs
More file actions
34 lines (27 loc) · 1.1 KB
/
Copy pathManualStackingInfo.cs
File metadata and controls
34 lines (27 loc) · 1.1 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
using System;
using System.Collections.Generic;
using Exceptionless.Extensions;
namespace Exceptionless.Models.Data {
public class ManualStackingInfo {
public ManualStackingInfo() {
SignatureData = new Dictionary<string, string>();
}
public ManualStackingInfo(string title) : this() {
if (!String.IsNullOrWhiteSpace(title))
Title = title.Trim();
}
public ManualStackingInfo(string title, IDictionary<string, string> signatureData) : this(title) {
if (signatureData != null && signatureData.Count > 0)
SignatureData.AddRange(signatureData);
}
public ManualStackingInfo(IDictionary<string, string> signatureData) : this(null, signatureData) {}
/// <summary>
/// Stack Title (defaults to the event message)
/// </summary>
public string Title { get; set; }
/// <summary>
/// Key value pair that determines how the event is stacked.
/// </summary>
public IDictionary<string, string> SignatureData { get; set; }
}
}