コード例 #1
0
        public async Task <bool> DeleteAsync(TRoot aggregate)
        {
            var result = await _delete.DeleteAsync(aggregate);

            if (result)
            {
                await _bus.Emit(new DomainDeleted <TRoot>(aggregate));
            }
            return(result);
        }
コード例 #2
0
        public async Task RemoveAsync(T model)
        {
            await deleter.DeleteAsync(model);

            OnChange?.Invoke(this, EventArgs.Empty);
        }