示例#1
0
        private bool IsAiringDistributed(Envelope envelope, string queueName)
        {
            switch (envelope.Message.Action)
            {
            case "Create":
            case "Modify":
                return(_airingService.IsAiringDistributed(envelope.AiringId, queueName));

            case "Delete":
                return(_airingService.IsAiringDistributed(envelope.AiringId, queueName, AiringCollection.DeletedCollection));

            default:
                throw new Exception("Unable to determine the airing collection for action: " + envelope.Message.Action);
            }
        }