示例#1
0
        public Task <bool> Handle(RemoverAppCommand message, CancellationToken cancellationToken)
        {
            #region Basic Validation
            if (!message.IsValid())
            {
                NotifyValidationErrors(message);
                return(Task.FromResult(false));
            }
            #endregion

            _appRepository.Remove(message.Id);

            if (Commit())
            {
                _bus.RaiseEvent(new RemoverAppEvent());
            }

            return(Task.FromResult(true));
        }
示例#2
0
 public Task <bool> Handle(RemoverAppCommand request, CancellationToken cancellationToken)
 {
     throw new System.NotImplementedException();
 }