public RawMessage OnProduce(RawMessage rawMessage) { return(interceptors.AsEnumerable() .Aggregate(rawMessage, (x, y) => y.OnProduce(x))); }
public RawMessage OnConsume(RawMessage rawMessage) { return(interceptors.AsEnumerable() .Reverse() .Aggregate(rawMessage, (x, y) => y.OnConsume(x))); }