INNER CODE UNIT · C#

Unsubscribe

henriquelourente/Domain-Driven-Design-Sample · src/SampleLibrary.Infra.Messaging/DeleteBookEventConsumer.cs:27

        public  void Unsubscribe() => _bus.Dispose();

        protected  void HandleMessage(DeleteBookEvent message) => _bookEventRepository.RemoveAsync(message.Id).Wait();
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…