Code.FinancialDesignPatterns.ConsumptionAdder.Invoke(TC, TC)

Here are the examples of the csharp api class Code.FinancialDesignPatterns.ConsumptionAdder.Invoke(TC, TC) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

View license
public void AddMatch(IConsumer<T, TC> consumer, TC consumtion, bool isFullyConsumed = false) {
            IsFullyConsumed = isFullyConsumed;
            consumers.Add(new Match<T, TC>(consumer, consumtion));
            AccumulatedConsumption = adder(AccumulatedConsumption, consumtion);
        }