When calling the PlainToOnlineAsync() method, values are set over the nested primitive values into the Cyclic variable. Subsequently, the entire object is written to the controller using await this.WriteAsync(). In the implementation of the Cyclic method, periodicWriteSet() is also added, which causes that after the first upload to the controller, the write is duplicated by a periodic write as well.
public virtual T Cyclic
{ ...
set
{
if (HasWriteAccess())
{
CyclicToWrite = value;
_cyclic = value;
base.Parent.GetConnector()?.AddToPeriodicWriteSet(this);
}
}
}
Describe the bug
When calling the
PlainToOnlineAsync()
method, values are set over the nested primitive values into theCyclic
variable. Subsequently, the entire object is written to the controller usingawait this.WriteAsync()
. In the implementation of the Cyclic method,periodicWriteSet()
is also added, which causes that after the first upload to the controller, the write is duplicated by a periodic write as well.