public static EventGraph UseAggregatorLookup(this EventGraph eventGraph, AggregationLookupStrategy strategy) { if (strategy == AggregationLookupStrategy.UsePublicApply) { eventGraph.UseAggregatorLookup(new AggregatorLookup(type => typeof(Aggregator <>).CloseAndBuildAs <IAggregator>(type))); } else if (strategy == AggregationLookupStrategy.UsePrivateApply) { eventGraph.UseAggregatorLookup(new AggregatorLookup(type => typeof(AggregatorApplyPrivate <>).CloseAndBuildAs <IAggregator>(type))); } return(eventGraph); }
private bool Equals(AggregationLookupStrategy other) { return Value == other.Value; }
private bool Equals(AggregationLookupStrategy other) { return(Value == other.Value); }