|
8 | 8 |
|
9 | 9 | namespace SharpRaven.Data |
10 | 10 | { |
| 11 | + /// <summary> |
| 12 | + /// Represents the JSON packet that is transmitted to Sentry. |
| 13 | + /// </summary> |
11 | 14 | public class JsonPacket |
12 | 15 | { |
| 16 | + /// <summary> |
| 17 | + /// Initializes a new instance of the <see cref="JsonPacket"/> class. |
| 18 | + /// </summary> |
| 19 | + /// <param name="project">The project.</param> |
13 | 20 | public JsonPacket(string project) |
14 | 21 | { |
15 | 22 | // Get assemblies. |
@@ -45,6 +52,11 @@ public JsonPacket(string project) |
45 | 52 | } |
46 | 53 |
|
47 | 54 |
|
| 55 | + /// <summary> |
| 56 | + /// Initializes a new instance of the <see cref="JsonPacket"/> class. |
| 57 | + /// </summary> |
| 58 | + /// <param name="project">The project.</param> |
| 59 | + /// <param name="e">The decimal.</param> |
48 | 60 | public JsonPacket(string project, Exception e) |
49 | 61 | { |
50 | 62 | Message = e.Message; |
@@ -156,25 +168,47 @@ public JsonPacket(string project, Exception e) |
156 | 168 |
|
157 | 169 | /// <summary> |
158 | 170 | /// A list of relevant modules (libraries) and their versions. |
159 | | - /// |
160 | 171 | /// Automated to report all modules currently loaded in project. |
161 | 172 | /// </summary> |
| 173 | + /// <value> |
| 174 | + /// The modules. |
| 175 | + /// </value> |
162 | 176 | [JsonProperty(PropertyName = "modules", NullValueHandling = NullValueHandling.Ignore)] |
163 | 177 | public List<Module> Modules { get; set; } |
164 | 178 |
|
| 179 | + /// <summary> |
| 180 | + /// Gets or sets the exceptions. |
| 181 | + /// </summary> |
| 182 | + /// <value> |
| 183 | + /// The exceptions. |
| 184 | + /// </value> |
165 | 185 | [JsonProperty(PropertyName = "exception", NullValueHandling = NullValueHandling.Ignore)] |
166 | 186 | public List<SentryException> Exceptions { get; set; } |
167 | 187 |
|
| 188 | + /// <summary> |
| 189 | + /// Gets or sets the <see cref="SentryRequest"/> object, containing information about the HTTP request. |
| 190 | + /// </summary> |
| 191 | + /// <value> |
| 192 | + /// The <see cref="SentryRequest"/> object, containing information about the HTTP request. |
| 193 | + /// </value> |
168 | 194 | [JsonProperty(PropertyName = "request", NullValueHandling = NullValueHandling.Ignore)] |
169 | 195 | public SentryRequest Request { get; set; } |
170 | 196 |
|
| 197 | + /// <summary> |
| 198 | + /// Gets or sets the <see cref="SentryUser"/> object, which describes the authenticated User for a request. |
| 199 | + /// </summary> |
| 200 | + /// <value> |
| 201 | + /// The <see cref="SentryUser"/> object, which describes the authenticated User for a request. |
| 202 | + /// </value> |
171 | 203 | [JsonProperty(PropertyName = "user", NullValueHandling = NullValueHandling.Ignore)] |
172 | 204 | public SentryUser User { get; set; } |
173 | 205 |
|
174 | 206 | /// <summary> |
175 | | - /// Turn into a JSON string. |
| 207 | + /// Converts the <see cref="JsonPacket"/> into a JSON string. |
176 | 208 | /// </summary> |
177 | | - /// <returns>json string</returns> |
| 209 | + /// <returns> |
| 210 | + /// The <see cref="JsonPacket"/> as a JSON string. |
| 211 | + /// </returns> |
178 | 212 | public override string ToString() |
179 | 213 | { |
180 | 214 | return JsonConvert.SerializeObject(this); |
|
0 commit comments