public void AddOrUpdateSignalSource(SignalSource signalSource) { var builder = signalSources.ToBuilder(); builder.Add(signalSource); signalSources = builder.ToImmutable(); }
public SignalAmount(SignalSource signalSource, int amount) { this.signalSource = signalSource; this.amount = amount; }