Esempio n. 1
0
        public AppDomainObject RenameClient(RenameClient command)
        {
            Guard.Valid(command, nameof(command), () => "Cannot rename client");

            ThrowIfNotCreated();

            RaiseEvent(SimpleMapper.Map(command, new AppClientRenamed()));

            return(this);
        }
 protected Task On(RenameClient command, CommandContext context)
 {
     return(handler.UpdateAsync <AppDomainObject>(context, a => a.RenameClient(command)));
 }