Пример #1
0
 public void EndSession()
 {
     _processingInfo             = null;
     _stocks                     = null;
     _onProcessingException      = null;
     _onStockProcessingException = null;
     _onStockStartProcessing     = null;
 }
Пример #2
0
 public void StartSession(Action <DataOpProcessingInfo> onStockStartProcessing,
                          Action <DataOpProcessingInfo, Exception> onStockProcessingException,
                          Action <string, Exception> onProcessingException)
 {
     _onStockStartProcessing     = onStockStartProcessing;
     _onStockProcessingException = onStockProcessingException;
     _onProcessingException      = onProcessingException;
     _stocks         = GetAllStocksDefinitions();
     _processingInfo = new DataOpProcessingInfo();
 }