public ProcessMessage(DbService iDbService, QueueService iQueueService) { _documentClient = iDbService.GetDocumentClient(); _client = iDbService.GetFirebaseClient(); _documentCollection = iDbService.GetDc("LMSCollection", "LMSRegistry"); _sp = iDbService.GetSp(_documentCollection, "Post"); _queue = iQueueService.GetQueue("queue"); }
// This function will get triggered/executed when a new message is written // on an Azure Queue called queue. static Functions() { var iDbService = new DbService(); var iQueueService=new QueueService(); _iProcessMessage = new ProcessMessage.ProcessMessage(iDbService, iQueueService); }