Exemplo n.º 1
0
        public AppDomainObject SetMasterLanguage(SetMasterLanguage command)
        {
            Guard.Valid(command, nameof(command), () => "Cannot set master language");

            ThrowIfNotCreated();

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

            return(this);
        }
Exemplo n.º 2
0
 protected Task On(SetMasterLanguage command, CommandContext context)
 {
     return(handler.UpdateAsync <AppDomainObject>(context, a => a.SetMasterLanguage(command)));
 }