Exemplo n.º 1
0
        public async Task HandleAsync(BeforeAddedEntityDomainEvent <User> args)
        {
            var p = args.Property("Active");

            p.CurrentValue = args.Entity.Active = true;

            await Task.CompletedTask;
        }
Exemplo n.º 2
0
 public void Handle(
     BeforeAddedEntityDomainEvent <User> args)
 {
     HandleAsync(args).Wait();
 }