-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIConfigurationChanges.cs
40 lines (36 loc) · 1.44 KB
/
IConfigurationChanges.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
using System.Collections.Generic;
using System.Threading;
namespace DataCore.Adapter.Diagnostics {
/// <summary>
/// Feature that allows subscribers to be notified when configuration changes on items such as
/// tags and asset model nodes occur.
/// </summary>
[AdapterFeature(
WellKnownFeatures.Diagnostics.ConfigurationChanges,
ResourceType = typeof(AbstractionsResources),
Name = nameof(AbstractionsResources.DisplayName_ConfigurationChanges),
Description = nameof(AbstractionsResources.Description_ConfigurationChanges)
)]
public interface IConfigurationChanges : IAdapterFeature {
/// <summary>
/// Creates a configuration changes subscription.
/// </summary>
/// <param name="context">
/// The <see cref="IAdapterCallContext"/> for the caller.
/// </param>
/// <param name="request">
/// A request describing the subscription settings.
/// </param>
/// <param name="cancellationToken">
/// The cancellation token for the subscription.
/// </param>
/// <returns>
/// A channel reader that will emit configuration changes as they occur.
/// </returns>
IAsyncEnumerable<ConfigurationChange> Subscribe(
IAdapterCallContext context,
ConfigurationChangesSubscriptionRequest request,
CancellationToken cancellationToken
);
}
}