cleanup: Fix more build warnings in DataStreamSuite
Alot more
This commit is contained in:
1 parent
989d103eef
commit
bcd207f89e
118 files changed
+1812
-1597
No files matched your search
@@ -1,6 +1,10 @@
|
||||
namespace BCG {
|
||||
using Spark.Core.Collections;
|
||||
using Bts.DataStreamCore;
|
||||
|
||||
using Spark.Core.Collections;
|
||||
using Spark.Core.Diagnostics;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -8,10 +12,13 @@ namespace BCG {
|
||||
[DataStreamUserRespresentation("oldproject")]
|
||||
public class ProjectStream : ViewStream
|
||||
{
|
||||
private ProjectHelper myHelper;
|
||||
private string myColExp, myTableName;
|
||||
private ViewStream myVs;
|
||||
private IDictionary<string, string> myDic;
|
||||
private ProjectHelper? myHelper;
|
||||
readonly string? myColExp;
|
||||
readonly string? myTableName;
|
||||
readonly ViewStream? myVs;
|
||||
private IDictionary<string, string>? myDic;
|
||||
IDisposable? subscription;
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
/// <param name="vs">stream to susbsribe to as the input stream</param>
|
||||
@@ -52,14 +59,13 @@ namespace BCG {
|
||||
myDic = dic.ToDictionary(kv => kv.Value, kv => kv.Key);
|
||||
}
|
||||
|
||||
protected override void myOnFirstSubscriber()
|
||||
{
|
||||
myVs.onChange += new BCG.DataStream.ChangeDelegate (myHandleChange);
|
||||
}
|
||||
protected override void myOnFirstSubscriber() =>
|
||||
subscription = ExceptionAssert.MemberNotNull(myVs).Subscribe(myHandleChange);
|
||||
|
||||
protected override void myOnLastSubscriber()
|
||||
{
|
||||
myVs.onChange -= new BCG.DataStream.ChangeDelegate (myHandleChange);;
|
||||
subscription?.Dispose();
|
||||
subscription = null;
|
||||
}
|
||||
|
||||
internal void myHandleChange (object newValue)
|
||||
@@ -79,7 +85,7 @@ namespace BCG {
|
||||
else
|
||||
{ //first time a callback is received
|
||||
myHelper = myDic == null ?
|
||||
new ProjectHelper (dp.Schema, myColExp, myTableName) :
|
||||
new ProjectHelper(dp.Schema, ExceptionAssert.MemberNotNull(myColExp), myTableName) :
|
||||
new ProjectHelper (dp.Schema, myDic, myTableName);
|
||||
|
||||
IBlueRowCollection temp;
|
||||
|
||||
Reference in new issue
Block a user