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>(); }
public SMSBridge(ISendNotification smsNotication) { smsNotication = new SmsNotification(); }
public EmailBridge(ISendNotification emailNotication) { emailNotication = new EmailNotificaiton(); }
public NotificationHandling(ISendNotification notification, string message) { _notification = notification; _notification.FindSubscribers(this, message); }
public SmsBridge() { smsNotication = new SmsNotification(); // IOC container need to use here }
public EmailBridge() { emailNotication = new EmailNotificaiton(); // IOC container need to use here }
public Handler(DataContext context, ISendNotification sendNotification) { _sendNotification = sendNotification; _context = context; }
public Spending(IPaymentsRepository paymentsRepository, IDetermineHighSpending determineHighSpending, ISendNotification sendNotification) { PaymentsRepository = paymentsRepository; DetermineHighSpending = determineHighSpending; SendNotification = sendNotification; }