예제 #1
0
        public async Task RaiseEvents()
        {
            await _eventManager.Publish <TextEvent, string>("Hello World!");

            await _eventManager.Publish <ReferenceEvent, User>(new User { Name = "Pedro!" });

            await _eventManager.Publish <WithoutPayloadEvent>();
        }
예제 #2
0
 private async Task RaiseUpdateEvent(string[] changedTables)
 {
     if (changedTables == null || !changedTables.Any())
     {
         return;
     }
     await _eventManager.Publish <DbTablesUpdatedEvent, string[]>(changedTables);
 }