private void UpdateDeliveredTo(Envelope envelope, string queueName) { switch (envelope.Message.Action) { case "Create": case "Modify": _airingService.PushDeliveredTo(envelope.AiringId, queueName); break; case "Delete": _airingService.PushDeliveredTo(envelope.AiringId, queueName, AiringCollection.DeletedCollection); break; default: throw new Exception("Unable to determine the airing collection for action: " + envelope.Message.Action); } }