예제 #1
0
 public Downloader(IAstmChannel stream, AstmLowLevelSettings lowLevelSettings, ITimersManager timersManager, ILogger <Downloader> log)
 {
     _stream           = stream;
     _lowLevelSettings = lowLevelSettings;
     _timersManager    = timersManager;
     _log = log;
     _timersManager.CreateTimer(WAIT_FRAME_TIMER_NAME);
 }
예제 #2
0
 public Uploader(IAstmChannel stream, AstmLowLevelSettings lowLevelSettings, ITimersManager timersManager, ILogger <Uploader> log)
 {
     _stream        = stream;
     _timersManager = timersManager;
     _log           = log;
     _timersManager.CreateTimer(WAIT_ANSWER_TIMER_NAME);
     _timersManager.CreateTimer(WAIT_DELAY_TIMER_NAME);
     _havePriority     = lowLevelSettings.HavePriority;
     _lowLevelSettings = lowLevelSettings;
     _timersManager    = timersManager;
 }
예제 #3
0
 public AstmIOController(
     IAstmChannel stream,
     AstmLowLevelSettings lowLevelSettings,
     ILoggerFactory factory) : this(
         stream,
         lowLevelSettings,
         new Uploader(stream, lowLevelSettings, new TimersManager(), factory.CreateLogger <Uploader>()),
         new Downloader(stream, lowLevelSettings, new TimersManager(), factory.CreateLogger <Downloader>()),
         new TimersManager(),
         factory.CreateLogger <AstmIOController>())
 {
 }
예제 #4
0
 protected AstmIOController(
     IAstmChannel stream,
     AstmLowLevelSettings lowLevelSettings,
     IUploader uploader,
     IDownloader downloader,
     ITimersManager timersManager,
     ILogger <AstmIOController> log)
 {
     _stream           = stream;
     _uploader         = uploader;
     _downloader       = downloader;
     _lowLevelSettings = lowLevelSettings;
     _timersManager    = timersManager;
     _log = log;
     _timersManager.CreateTimer(DISABLE_UPLOAD_TIMER_NAME);
 }