Exemplo n.º 1
0
        public void CallPlugins(UsecaseFactory <U> factory, U useCase)
        {
            var factories = Registry.Pooled <UsecaseFactories <U> > ();

            foreach (var item in factories)
            {
                item.Composer        = factory.Composer;
                item.BackendComposer = factory.BackendComposer;
                item.Compose(useCase);
            }
        }
Exemplo n.º 2
0
 public void Add(UsecaseFactory <T> f)
 {
     factories.Add(f);
 }