Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

24 wiersze
649 B

  1. using JT808.Gateway.Abstractions;
  2. using JT808.Gateway.Abstractions.Enums;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace JT808.Gateway.InMemoryMQ
  7. {
  8. public class JT808MsgReplyConsumerFactory : IJT808MsgReplyConsumerFactory
  9. {
  10. private readonly Func<JT808ConsumerType, IJT808MsgReplyConsumer> factory;
  11. public JT808MsgReplyConsumerFactory(Func<JT808ConsumerType, IJT808MsgReplyConsumer> accesor)
  12. {
  13. factory = accesor;
  14. }
  15. public IJT808MsgReplyConsumer Create(JT808ConsumerType consumerType)
  16. {
  17. return factory(consumerType);
  18. }
  19. }
  20. }