public async Task RaiseEvents() { await _eventManager.Publish <TextEvent, string>("Hello World!"); await _eventManager.Publish <ReferenceEvent, User>(new User { Name = "Pedro!" }); await _eventManager.Publish <WithoutPayloadEvent>(); }
private async Task RaiseUpdateEvent(string[] changedTables) { if (changedTables == null || !changedTables.Any()) { return; } await _eventManager.Publish <DbTablesUpdatedEvent, string[]>(changedTables); }