Example #1
0
 public UnlockTests()
 {
     TaskParams = new UnlockParams
     {
         OutputFileName = @"result.pdf"
     };
 }
Example #2
0
        public ExecuteTaskResponse Process(UnlockParams parameters)
        {
            if (parameters == null)
            {
                parameters = new UnlockParams();
            }

            return(base.Process(parameters));
        }
Example #3
0
        public async Task Unlock(UnlockParams param)
        {
            var remoteLock = await lockRepository.GetByIdAsync(param.LockId);

            await lockHttpService.UnlockAsync(param.LockId);

            await actionLogger.AddActionLogAsync(
                $"Lock \"{remoteLock.Name}\" was unlocked",
                ActionType.LockRemoteUnlock,
                DateTime.Now,
                HttpContext.User.GetId());

            await uow.CommitAsync();
        }
Example #4
0
        /// <summary>
        /// Process the task
        /// </summary>
        /// <returns></returns>
        public ExecuteTaskResponse Process()
        {
            var parameters = new UnlockParams();

            return(base.Process(parameters));
        }