refactor: Get rid of ViewStream.rows prop
It was causing weird side effects in debugger
This commit is contained in:
1 parent
327665b4c3
commit
bb5ea19f69
8 files changed
+59
-82
No files matched your search
@@ -32,37 +32,6 @@ namespace BCG
|
||||
?? (myRealSource as ViewStream)?.StreamName
|
||||
?? GetType().Name;
|
||||
|
||||
public IBlueRowCollection rows
|
||||
{
|
||||
get
|
||||
{
|
||||
if (myRealSource != null)
|
||||
{
|
||||
// BlueEventLog.logAssert (myRealSource is ViewStream);
|
||||
|
||||
return (myRealSource as ViewStream).rows;
|
||||
}
|
||||
else
|
||||
{
|
||||
// used to force a computation of a stream which
|
||||
// happens to have no subscribers
|
||||
onChange += new DataStream.ChangeDelegate(myDummy);
|
||||
try
|
||||
{
|
||||
|
||||
if (myLastValue != null)
|
||||
return ((DataPacket) myLastValue).newRows;
|
||||
else
|
||||
return null;
|
||||
}
|
||||
finally
|
||||
{
|
||||
onChange -= new DataStream.ChangeDelegate(myDummy);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected override object myGetValueForInitialSubscription()
|
||||
{
|
||||
if (myLastValue == null)
|
||||
|
||||
Reference in new issue
Block a user