-
Notifications
You must be signed in to change notification settings - Fork 44
/
IRollbarQueueController.cs
65 lines (62 loc) · 2.09 KB
/
IRollbarQueueController.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
namespace Rollbar
{
using System;
/// <summary>
/// Interface IRollbarQueueController
/// Implements the <see cref="System.IDisposable" />
/// </summary>
public interface IRollbarQueueController
{
/// <summary>
/// Starts this instance.
/// </summary>
void Start();
/// <summary>
/// Stops the instance.
/// </summary>
/// <param name="immediately">if set to <c>true</c> stops this instance immediately without waiting to stop gracefully.</param>
void Stop(bool immediately);
/// <summary>
/// Flushes the queues.
/// </summary>
void FlushQueues();
/// <summary>
/// Gets the total payload count.
/// </summary>
/// <returns>System.Int32.</returns>
int GetTotalPayloadCount();
/// <summary>
/// Gets the payload count.
/// </summary>
/// <param name="rollbar">The rollbar.</param>
/// <returns>System.Int32.</returns>
int GetPayloadCount(IRollbar rollbar);
/// <summary>
/// Gets the payload count.
/// </summary>
/// <param name="accessToken">The access token.</param>
/// <returns>System.Int32.</returns>
int GetPayloadCount(string accessToken);
/// <summary>
/// Gets the recommended timeout.
/// </summary>
/// <returns>TimeSpan.</returns>
TimeSpan GetRecommendedTimeout();
/// <summary>
/// Gets the recommended timeout.
/// </summary>
/// <param name="rollbar">The rollbar.</param>
/// <returns>TimeSpan.</returns>
TimeSpan GetRecommendedTimeout(IRollbar rollbar);
/// <summary>
/// Gets the recommended timeout.
/// </summary>
/// <param name="accessToken">The access token.</param>
/// <returns>TimeSpan.</returns>
TimeSpan GetRecommendedTimeout(string accessToken);
/// <summary>
/// Occurs when [internal event].
/// </summary>
event EventHandler<RollbarEventArgs>? InternalEvent;
}
}