/// <summary> /// Initializes a new instance of the <see cref="RollbackMessageCommandHandler" /> class. /// </summary> /// <param name="rollbackLua">The rollback.</param> /// <param name="rollbackDelayLua">The rollback delay.</param> /// <param name="unixTimeFactory">The unix time factory.</param> public RollbackMessageCommandHandler(RollbackLua rollbackLua, RollbackDelayLua rollbackDelayLua, IUnixTimeFactory unixTimeFactory) { Guard.NotNull(() => rollbackLua, rollbackLua); Guard.NotNull(() => rollbackDelayLua, rollbackDelayLua); Guard.NotNull(() => unixTimeFactory, unixTimeFactory); _rollbackLua = rollbackLua; _rollbackDelayLua = rollbackDelayLua; _unixTimeFactory = unixTimeFactory; }
/// <summary> /// Initializes a new instance of the <see cref="RollbackMessageCommandHandler" /> class. /// </summary> /// <param name="rollbackLua">The rollback.</param> /// <param name="rollbackDelayLua">The rollback delay.</param> /// <param name="unixTimeFactory">The unix time factory.</param> /// <param name="queueContext">The queue context.</param> public RollbackMessageCommandHandler(RollbackLua rollbackLua, RollbackDelayLua rollbackDelayLua, IUnixTimeFactory unixTimeFactory, QueueContext queueContext) { Guard.NotNull(() => rollbackLua, rollbackLua); Guard.NotNull(() => rollbackDelayLua, rollbackDelayLua); Guard.NotNull(() => unixTimeFactory, unixTimeFactory); Guard.NotNull(() => queueContext, queueContext); _rollbackLua = rollbackLua; _rollbackDelayLua = rollbackDelayLua; _unixTimeFactory = unixTimeFactory; _rpcQueue = queueContext.Context == QueueContexts.RpcQueue; }