public void Initialize()
 {
     _container = new CompositionContainer(
         new TypeCatalog(typeof(TestPart), typeof(CollectorClass), typeof(TransactionPolicy<>),
                         typeof (TransactionStorage<>))
         );
     _collector = _container.GetExportedValue<CollectorClass>();
 }
Пример #2
0
 public void Initialize()
 {
     _container = new CompositionContainer(
         new TypeCatalog(typeof(TestPart), typeof(CollectorClass), typeof(TransactionPolicy <>),
                         typeof(TransactionStorage <>))
         );
     _collector = _container.GetExportedValue <CollectorClass>();
 }
 internal TestPart(CollectorClass counter)
 {
     _counter = counter;
 }
 internal TestPart(CollectorClass counter)
 {
     _counter = counter;
 }