Skip to content

Commit

Permalink
Merge pull request #119 from technosoftware/master
Browse files Browse the repository at this point in the history
Fixed some warnings
  • Loading branch information
technosoftware authored Jun 3, 2023
2 parents 25275de + d9d4011 commit d8f7924
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 114 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public class SampleServerNodeManager : UaBaseNodeManager
private bool disposed_;
private readonly object lockDisposable_ = new object();

private Opc.Ua.Test.DataGenerator generator_;
private Timer simulationTimer_;
private ushort simulationInterval_ = 1000;
private bool simulationEnabled_ = true;
Expand Down Expand Up @@ -250,24 +249,6 @@ private BaseDataVariableState CreateDynamicVariable(NodeState parent, string pat
return variable;
}

private object GetNewValue(BaseVariableState variable)
{
if (generator_ == null)
{
generator_ = new Opc.Ua.Test.DataGenerator(null) { BoundaryValueFrequency = 0 };
}

object value = null;
var retryCount = 0;

while (value == null && retryCount < 10)
{
value = generator_.GetRandom(variable.DataType, variable.ValueRank, new uint[] { 10 }, opcServer_.NodeManager.ServerData.TypeTree);
retryCount++;
}
return value;
}

private void DoSimulation(object state)
{
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public class SampleServerNodeManager : UaBaseNodeManager
private bool disposed_;
private readonly object lockDisposable_ = new object();

private Opc.Ua.Test.DataGenerator generator_;
private Timer simulationTimer_;
private ushort simulationInterval_ = 1000;
private bool simulationEnabled_ = true;
Expand Down Expand Up @@ -285,24 +284,6 @@ private BaseDataVariableState CreateDynamicVariable(NodeState parent, string pat
return variable;
}

private object GetNewValue(BaseVariableState variable)
{
if (generator_ == null)
{
generator_ = new Opc.Ua.Test.DataGenerator(null) { BoundaryValueFrequency = 0 };
}

object value = null;
var retryCount = 0;

while (value == null && retryCount < 10)
{
value = generator_.GetRandom(variable.DataType, variable.ValueRank, new uint[] { 10 }, opcServer_.NodeManager.ServerData.TypeTree);
retryCount++;
}
return value;
}

private void DoSimulation(object state)
{
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public class SampleServerNodeManager : UaBaseNodeManager
private bool disposed_;
private readonly object lockDisposable_ = new object();

private Opc.Ua.Test.DataGenerator generator_;
private Timer simulationTimer_;
private ushort simulationInterval_ = 1000;
private bool simulationEnabled_ = true;
Expand Down Expand Up @@ -395,24 +394,6 @@ private BaseDataVariableState CreateDynamicVariable(NodeState parent, string pat
return variable;
}

private object GetNewValue(BaseVariableState variable)
{
if (generator_ == null)
{
generator_ = new Opc.Ua.Test.DataGenerator(null) { BoundaryValueFrequency = 0 };
}

object value = null;
var retryCount = 0;

while (value == null && retryCount < 10)
{
value = generator_.GetRandom(variable.DataType, variable.ValueRank, new uint[] { 10 }, opcServer_.NodeManager.ServerData.TypeTree);
retryCount++;
}
return value;
}

private void DoSimulation(object state)
{
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public class SampleServerNodeManager : UaBaseNodeManager
private bool disposed_;
private readonly object lockDisposable_ = new object();

private Opc.Ua.Test.DataGenerator generator_;
private Timer simulationTimer_;
private ushort simulationInterval_ = 1000;
private bool simulationEnabled_ = true;
Expand Down Expand Up @@ -250,24 +249,6 @@ private BaseDataVariableState CreateDynamicVariable(NodeState parent, string pat
return variable;
}

private object GetNewValue(BaseVariableState variable)
{
if (generator_ == null)
{
generator_ = new Opc.Ua.Test.DataGenerator(null) { BoundaryValueFrequency = 0 };
}

object value = null;
var retryCount = 0;

while (value == null && retryCount < 10)
{
value = generator_.GetRandom(variable.DataType, variable.ValueRank, new uint[] { 10 }, opcServer_.NodeManager.ServerData.TypeTree);
retryCount++;
}
return value;
}

private void DoSimulation(object state)
{
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public class SampleServerNodeManager : UaBaseNodeManager
private bool disposed_;
private readonly object lockDisposable_ = new object();

private Opc.Ua.Test.DataGenerator generator_;
private Timer simulationTimer_;
private ushort simulationInterval_ = 1000;
private bool simulationEnabled_ = true;
Expand Down Expand Up @@ -288,24 +287,6 @@ private BaseDataVariableState CreateDynamicVariable(NodeState parent, string pat
return variable;
}

private object GetNewValue(BaseVariableState variable)
{
if (generator_ == null)
{
generator_ = new Opc.Ua.Test.DataGenerator(null) { BoundaryValueFrequency = 0 };
}

object value = null;
var retryCount = 0;

while (value == null && retryCount < 10)
{
value = generator_.GetRandom(variable.DataType, variable.ValueRank, new uint[] { 10 }, opcServer_.NodeManager.ServerData.TypeTree);
retryCount++;
}
return value;
}

private void DoSimulation(object state)
{
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public class SampleServerNodeManager : UaBaseNodeManager
private bool disposed_;
private readonly object lockDisposable_ = new object();

private Opc.Ua.Test.DataGenerator generator_;
private Timer simulationTimer_;
private ushort simulationInterval_ = 1000;
private bool simulationEnabled_ = true;
Expand Down Expand Up @@ -454,24 +453,6 @@ private BaseDataVariableState CreateDynamicVariable(NodeState parent, string pat
return variable;
}

private object GetNewValue(BaseVariableState variable)
{
if (generator_ == null)
{
generator_ = new Opc.Ua.Test.DataGenerator(null) { BoundaryValueFrequency = 0 };
}

object value = null;
var retryCount = 0;

while (value == null && retryCount < 10)
{
value = generator_.GetRandom(variable.DataType, variable.ValueRank, new uint[] { 10 }, opcServer_.NodeManager.ServerData.TypeTree);
retryCount++;
}
return value;
}

private void DoSimulation(object state)
{
try
Expand Down

0 comments on commit d8f7924

Please sign in to comment.