public ConnectionFunctionCompositionCounter(IConnectionFunction <T> function, ConnectionFunctionCounter <COMPO> compoCounter) : base(function) { this.compoCounter = compoCounter; this.compoCounter.CountChanged += (sender, e) => { // 乗っ取り対象のカウンタのカウントが0になったときに、勝手に通信を止められたら困る if (this.Count > 0) { e.CanStop = false; } }; }
public ConnectionFunctionCounter(IConnectionFunction <T> function) : base(function) { }
public ConnectionFunctionCounterBase(IConnectionFunction <T> function) { this.Function = function; }