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); }
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; }
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>()) { }
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); }