コード例 #1
0
 public BidirectionalPassthroughSignalTally(ISignalSource parentSignalSource)
 {
     ParentSignalSource       = parentSignalSource;
     tallyState               = new PassthroughSignalTallyState(ParentSignalSource);
     tallyReceiver            = new PassthroughSignalTallyReceiver();
     tallyState.StateChanged += tallyStateChanged;
     tallyReceiver.Got       += (r, rc) => Got?.Invoke(r, rc);
     tallyReceiver.Revoked   += (r, rc) => Revoked?.Invoke(r, rc);
 }