Пример #1
0
 public ProductManager(CrossCuttingConcernsFactory crossCuttingConcernsFactory)
 {
     _crossCuttingConcernsFactory = crossCuttingConcernsFactory;
     _caching = crossCuttingConcernsFactory.CreateCaching();
     _logging = crossCuttingConcernsFactory.CreateLogger();
 }
Пример #2
0
        private CrossCuttingConcernsFactory _crossCuttingConcernsFactory;              //bunu yazdıktan sonra oluşturucuyu oluşturun

        public ProductManager(CrossCuttingConcernsFactory crossCuttingConcernsFactory) //method olarak yazmış olduk
        {
            _crossCuttingConcernsFactory = crossCuttingConcernsFactory;
            _logging = _crossCuttingConcernsFactory.CreateLogger(); //bunları da methodllaştırdık
            _caching = _crossCuttingConcernsFactory.CreateCaching();
        }
Пример #3
0
 public ProductManager(CrossCuttingConcernFactory crossCuttingConcernFactory)
 {
     this.crossCuttingConcernFactory = crossCuttingConcernFactory;
     this.logging = this.crossCuttingConcernFactory.CreateLogger();
     this.caching = this.crossCuttingConcernFactory.CreateCaching();
 }
Пример #4
0
 public ProductManager(CCCFactory cccFactory)
 {
     _cccFactory = cccFactory;
     _logging    = _cccFactory.CreateLogger();
     _caching    = _cccFactory.CreateCaching();
 }
Пример #5
0
 public CustomerManager(CrossCuttingConcernsFactory crossCuttingConcernsFactory)
 {
     _crossCuttingConcernsFactory = crossCuttingConcernsFactory;
     _logging = _crossCuttingConcernsFactory.CreateLogger();
     _caching = _crossCuttingConcernsFactory.CreateCaching();
 }