// Uncomment the method below to handle the event raised before a feature is deactivated.
        public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        {
            var    web       = (SPWeb)properties.Feature.Parent;
            string listTitle = "Lists/" + Constants.Lists.NEWS;
            var    list      = web.GetList(SPUrlUtility.CombineUrl(web.ServerRelativeUrl, listTitle));

            EventReceiverController.DeleteListEventReceiver(list, typeof(EmailNotificationEventReceiver), SPEventReceiverType.ItemAdded);
        }
        // Uncomment the method below to handle the event raised after a feature has been activated.
        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            var    web       = (SPWeb)properties.Feature.Parent;
            string listTitle = "Lists/" + Constants.Lists.NEWS;
            var    list      = web.GetList(SPUrlUtility.CombineUrl(web.ServerRelativeUrl, listTitle));

            EventReceiverController.ProvisionListEventReceiver("EmailNotificationEventReceiver - ItemAdded", list, typeof(EmailNotificationEventReceiver), SPEventReceiverType.ItemAdded, SPEventReceiverSynchronization.Asynchronous, 20000);
        }