/// <summary>Initializes a new instance of the <see cref="DeleteMessageCommandHandler"/> class.</summary> /// <param name="errorLua">The error lua.</param> /// <param name="timeFactory">Time factory</param> public MoveRecordToErrorQueueCommandHandler(ErrorLua errorLua, IUnixTimeFactory timeFactory) { Guard.NotNull(() => errorLua, errorLua); Guard.NotNull(() => timeFactory, timeFactory); _errorLua = errorLua; _unixTime = timeFactory.Create(); }
public DirectoryWatcher(IDebugger debugger, IUnixTime unixTime, ICron cron) { // ... (_debugger = debugger).Trace(); _unixTime = unixTime; _cron = cron; // Registering cron-task _cronTaskIdentifier = _cron.Register(FileSystemWatcherCheck, 30); // ... _queue = new Queue <string>(); _directories = new Dictionary <string, int>(); }
public UniqueIdGenerator(ISequence sequence, IUnixTime unix) { sequence_ = sequence; unix_ = unix; }