Add non-generic CreateNotification method

This commit is contained in:
Peter Butzhammer
2024-04-26 10:45:14 +02:00
parent 6917295cf1
commit 57ff276489
4 changed files with 54 additions and 8 deletions

View File

@@ -1,5 +1,4 @@
using JetBrains.Annotations;
using Microsoft.Extensions.Logging;
using Sharp7.Rx.Enums;
namespace Sharp7.Rx.Interfaces;
@@ -7,12 +6,13 @@ namespace Sharp7.Rx.Interfaces;
[NoReorder]
public interface IPlc : IDisposable
{
IObservable<TValue> CreateNotification<TValue>(string variableName, TransmissionMode transmissionMode);
Task SetValue<TValue>(string variableName, TValue value, CancellationToken token = default);
Task<TValue> GetValue<TValue>(string variableName, CancellationToken token = default);
IObservable<ConnectionState> ConnectionState { get; }
Task SetValue<TValue>(string variableName, TValue value, CancellationToken token = default);
Task<TValue> GetValue<TValue>(string variableName, CancellationToken token = default);
Task<object> GetValue(string variableName, CancellationToken token = default);
ILogger Logger { get; }
IObservable<TValue> CreateNotification<TValue>(string variableName, TransmissionMode transmissionMode);
IObservable<object> CreateNotification(string variableName, TransmissionMode transmissionMode);
}