Add non-generic GetValue and improve documentation

This commit is contained in:
Peter Butzhammer
2024-04-26 09:23:51 +02:00
parent 99cf9cbc12
commit f5a51c074f
3 changed files with 175 additions and 43 deletions

View File

@@ -8,8 +8,11 @@ namespace Sharp7.Rx.Interfaces;
public interface IPlc : IDisposable
{
IObservable<TValue> CreateNotification<TValue>(string variableName, TransmissionMode transmissionMode);
Task SetValue<TValue>(string variableName, TValue value);
Task<TValue> GetValue<TValue>(string variableName);
Task SetValue<TValue>(string variableName, TValue value, CancellationToken token = default);
Task<TValue> GetValue<TValue>(string variableName, CancellationToken token = default);
IObservable<ConnectionState> ConnectionState { get; }
Task<object> GetValue(string variableName, CancellationToken token = default);
ILogger Logger { get; }
}