Exemplo n.º 1
0
 public AracController(AracService aracService, SubscriptionManager subscriptionManager, /*ICommandBus commandBus,*/ IEventBus eventBus)
 {
     _aracService = aracService;
     // _commandBus = commandBus;
     _eventBus            = eventBus;
     _subscriptionManager = subscriptionManager;
 }
Exemplo n.º 2
0
        public AracAyarlaCommand(string musteriAdSoyad, AracService aracService, IEventBus eventBus)
        {
            _arac = new Arac();
            _arac.MusteriAdSoyad = musteriAdSoyad;
            _arac.AracMarka      = markaListesi[new Random().Next(markaListesi.Count)];
            _arac.TeslimSaati    = DateTime.UtcNow.ToString();

            _aracService = aracService;
            _eventBus    = eventBus;
        }
Exemplo n.º 3
0
 public OdemeBasariliOlduEventHandler(AracService aracService, IEventBus eventBus)
 {
     _aracService = aracService;
     _eventBus = eventBus;
 }
Exemplo n.º 4
0
 public EventBusRabbitMQ(IConfiguration configuration, AracService aracService)
 {
     connectionFactory = new EventBusConnectionFactory(configuration).getConnectionFactory();
     _aracService      = aracService;
 }