fix: preserve SDK 2.0 client value and lifetime contracts
This commit is contained in:
@@ -129,6 +129,16 @@ internal sealed class FakeSubscriptionAdapter : ISubscriptionAdapter
|
||||
lock (_itemsLock) _items.Clear();
|
||||
}
|
||||
|
||||
public Action<string, DataValue> CaptureDataCallback(uint handle)
|
||||
{
|
||||
lock (_itemsLock) return _items[handle].DataCallback!;
|
||||
}
|
||||
|
||||
public Action<EventFieldList> CaptureEventCallback(uint handle)
|
||||
{
|
||||
lock (_itemsLock) return _items[handle].EventCallback!;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Simulates a data change notification for testing.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user