mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-15 19:32:53 +00:00
19 lines
681 B
C#
19 lines
681 B
C#
using JetBrains.Annotations;
|
|
using Sharp7.Rx.Enums;
|
|
|
|
namespace Sharp7.Rx.Interfaces;
|
|
|
|
[NoReorder]
|
|
public interface IPlc : IDisposable
|
|
{
|
|
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);
|
|
|
|
IObservable<TValue> CreateNotification<TValue>(string variableName, TransmissionMode transmissionMode);
|
|
IObservable<object> CreateNotification(string variableName, TransmissionMode transmissionMode);
|
|
}
|