mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-16 11:42:52 +00:00
Remove "S7" from some class names
This commit is contained in:
@@ -3,16 +3,16 @@ using Sharp7.Rx.Interfaces;
|
||||
|
||||
namespace Sharp7.Rx;
|
||||
|
||||
internal class CacheVariableNameParser : IS7VariableNameParser
|
||||
internal class CacheVariableNameParser : IVariableNameParser
|
||||
{
|
||||
private static readonly ConcurrentDictionary<string, S7VariableAddress> addressCache = new ConcurrentDictionary<string, S7VariableAddress>(StringComparer.OrdinalIgnoreCase);
|
||||
private static readonly ConcurrentDictionary<string, VariableAddress> addressCache = new ConcurrentDictionary<string, VariableAddress>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
private readonly IS7VariableNameParser inner;
|
||||
private readonly IVariableNameParser inner;
|
||||
|
||||
public CacheVariableNameParser(IS7VariableNameParser inner)
|
||||
public CacheVariableNameParser(IVariableNameParser inner)
|
||||
{
|
||||
this.inner = inner;
|
||||
}
|
||||
|
||||
public S7VariableAddress Parse(string input) => addressCache.GetOrAdd(input, inner.Parse);
|
||||
public VariableAddress Parse(string input) => addressCache.GetOrAdd(input, inner.Parse);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user