Beispiel #1
0
        public static void Use(this IPipeable pipe, IFilter filter)
        {
            var p = PipeStorage.GetOrAdd(pipe);

            p.Register(filter);
        }
Beispiel #2
0
        public static void ExecutePipe(this IPipeable pipe, object input)
        {
            var p = PipeStorage.GetOrAdd(pipe);

            p.Process(input);
        }