public void Process(SmsGatewayRegistered @event) { _repository.Insert(new SmsGateway(@event.Id) { Name = @event.Name, ApiKey = @event.ApiKey }); }
public void Process(SmsGatewayRegistered @event) { _mapper.SetTenantFor(@event.ApiKey, _contextManager.Current.Tenant); }