public SmsSender(IMessageRepository messageRepository, IMessageRecepientRepository messageRecepientRepository, IPersonRepository personRepository, IHttpPostService httpPostService) { _messageRepository = messageRepository; _messageRecepientRepository = messageRecepientRepository; _personRepository = personRepository; _httpPostService = httpPostService; _bulkSmsUrl = "http://bulksms.2way.co.za:5567/eapi/submission/send_sms/2/2.0"; _bulkSmsCommunityUrl = "http://community.bulksms.com:5567/eapi/submission/send_sms/2/2.0"; }
public WebhookHandler( IHttpPostService httpPostService, IGenericRepository <WebhookLog> logRepository, IGenericRepository <MitigationWebhook> webhookRepository, IVeracodeRepository veracodeRepository, IOptions <ContextConfiguration> contextOptions, IOptions <AgentConfiguration> agentOptions, IStatusService statusService ) { _name = contextOptions.Value.Name; _callhomeaAddress = agentOptions.Value.CallHome; _httpPostService = httpPostService; _logRepository = logRepository; _webhookRepository = webhookRepository; _veracodeRepository = veracodeRepository; _statusService = statusService; }