public void HandleQueueItem(DareyaAPI.ProcessingQueue.ProcessingQueueItem item)
        {
            long chalID = item.Data["ChalID"];
            long custID = item.Data["CustID"];

            PerformBillingForCompletedChallenge(chalID, custID);
        }
 public static IQueueItemProcessor GetQueueItemProcessor(DareyaAPI.ProcessingQueue.MessageType Type)
 {
     switch (Type)
     {
         case MessageType.Billing:
             return _billing;
         case MessageType.Notify:
             return _email;
         case MessageType.Maintenance:
             return _maintenance;
         default:
             return null;
     }
 }
        public void HandleQueueItem(DareyaAPI.ProcessingQueue.ProcessingQueueItem item)
        {
            ICustomerRepository custRepo = RepoFactory.GetCustomerRepo();

            long SourceCustomerID;
            long TargetCustomerID;
            long ChallengeID;
            long NotificationType;

            item.Data.TryGetValue("SrcID", out SourceCustomerID);
            item.Data.TryGetValue("TgtID", out TargetCustomerID);
            item.Data.TryGetValue("nType", out NotificationType);
            item.Data.TryGetValue("ChaID", out ChallengeID);

            HandlePushServiceNotifications(SourceCustomerID, TargetCustomerID, ChallengeID, (CustomerNotifier.NotifyType)NotificationType);
            HandleEmailNotifications(SourceCustomerID, TargetCustomerID, ChallengeID, (CustomerNotifier.NotifyType)NotificationType);
        }
 public void HandleQueueItem(DareyaAPI.ProcessingQueue.ProcessingQueueItem item)
 {
     throw new NotImplementedException();
 }