Ejemplo n.º 1
0
 public CalendarService()
 {
     _calendarContainer = new CalendarContainer();
     _itemsController   = new ItemsController();
     _itemsStorage      = new ItemsStorage(_itemsController);
     _itemProcessing    = new ItemProcessing(_itemsStorage, _itemsController, _calendarContainer);
 }
Ejemplo n.º 2
0
 public ItemProcessing(ItemsStorage itemsStorage, ItemsController itemsController, CalendarContainer calendar)
 {
     _itemsStorage      = itemsStorage;
     _itemsController   = itemsController;
     _calendarContainer = calendar;
     _task = Task.Factory.StartNew(ProcessItem);
 }