-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIClientCallbacks.cs
45 lines (38 loc) · 1.42 KB
/
IClientCallbacks.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
using Cognite.Extractor.Common;
using Cognite.OpcUa.Subscriptions;
using System.Threading.Tasks;
namespace Cognite.OpcUa
{
public interface IClientCallbacks
{
PeriodicScheduler TaskScheduler { get; }
/// <summary>
/// Invoked when client loses connection to server.
/// </summary>
void OnServerDisconnect(UAClient source);
/// <summary>
/// Invoked whenever the session reconnects to the server.
/// </summary>
Task OnServerReconnect(UAClient source);
/// <summary>
/// Invoked whenever the client service level goes from below to above
/// the configured threshold.
/// </summary>
Task OnServiceLevelAboveThreshold(UAClient source);
/// <summary>
/// Invoked whenever the client service level goes from above to below
/// the configured threshold.
/// </summary>
Task OnServicelevelBelowThreshold(UAClient source);
/// <summary>
/// Invoked when a subscription is dropped.
/// </summary>
/// <param name="subscription">Dropped subscription</param>
void OnSubscriptionFailure(SubscriptionName subscription);
/// <summary>
/// Invoked when a subscription is created or recreated.
/// </summary>
/// <param name="subscription"></param>
void OnCreatedSubscription(SubscriptionName subscription);
}
}