mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-16 11:42:52 +00:00
import tests
This commit is contained in:
4
Sharp7.Rx/AssemblyInfo.cs
Normal file
4
Sharp7.Rx/AssemblyInfo.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly: InternalsVisibleTo("Sharp7.Rx.Tests")]
|
||||
|
||||
@@ -7,7 +7,7 @@ using Sharp7.Rx.Enums;
|
||||
|
||||
namespace Sharp7.Rx
|
||||
{
|
||||
internal class S7VaraibleNameParser
|
||||
internal class S7VariableNameParser
|
||||
{
|
||||
private readonly Regex regex = new Regex(@"^(?<operand>db{1})(?<dbNr>\d{1,4})\.?(?<type>dbx|x|s|string|b|dbb|d|int|dbw|w|dint|dul|dulint|dulong|){1}(?<start>\d+)(\.(?<bitOrLength>\d+))?$", RegexOptions.IgnoreCase);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Sharp7.Rx
|
||||
private readonly string ipAddress;
|
||||
private readonly int rackNumber;
|
||||
private readonly int cpuMpiAddress;
|
||||
private readonly S7VaraibleNameParser varaibleNameParser;
|
||||
private readonly S7VariableNameParser varaibleNameParser;
|
||||
private bool disposed;
|
||||
private ISubject<Unit> disposingSubject = new Subject<Unit>();
|
||||
private IS7Connector s7Connector;
|
||||
@@ -27,7 +27,7 @@ namespace Sharp7.Rx
|
||||
this.rackNumber = rackNumber;
|
||||
this.cpuMpiAddress = cpuMpiAddress;
|
||||
|
||||
varaibleNameParser = new S7VaraibleNameParser();
|
||||
varaibleNameParser = new S7VariableNameParser();
|
||||
}
|
||||
|
||||
public IObservable<ConnectionState> ConnectionState { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user