Example #1
0
        public App()
        {
            var config = new ConsumerConfig
            {
                BootstrapServers = "localhost:9092",
                GroupId          = "console-demo",
                AutoOffsetReset  = AutoOffsetReset.Earliest
            };

            _consumer = new ConsumerBuilder <Ignore, string>(config).Build();

            _sendNotification = Program.ServiceProvider.GetService <ISendNotification>();
        }
Example #2
0
 public SMSBridge(ISendNotification smsNotication)
 {
     smsNotication = new SmsNotification();
 }
Example #3
0
 public EmailBridge(ISendNotification emailNotication)
 {
     emailNotication = new EmailNotificaiton();
 }
 public NotificationHandling(ISendNotification notification, string message)
 {
     _notification = notification;
     _notification.FindSubscribers(this, message);
 }
Example #5
0
 public SmsBridge()
 {
     smsNotication = new SmsNotification(); // IOC container need to use here
 }
Example #6
0
 public EmailBridge()
 {
     emailNotication = new EmailNotificaiton(); // IOC container need to use here
 }
Example #7
0
 public Handler(DataContext context, ISendNotification sendNotification)
 {
     _sendNotification = sendNotification;
     _context          = context;
 }
 public Spending(IPaymentsRepository paymentsRepository, IDetermineHighSpending determineHighSpending, ISendNotification sendNotification) 
 {
     PaymentsRepository = paymentsRepository;
     DetermineHighSpending = determineHighSpending;
     SendNotification = sendNotification;
 }