示例#1
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;
 }
示例#2
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);
 }
示例#3
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);
 }