Example #1
0
        public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        {
            var context = HarshServerProvisionerContext.FromProperties(properties);

            _root.UnprovisionAsync(context).RunSynchronously();

            base.FeatureDeactivating(properties);
        }
Example #2
0
        public override void FeatureUpgrading(
            SPFeatureReceiverProperties properties,
            String upgradeActionName,
            IDictionary <String, String> parameters)
        {
            base.FeatureUpgrading(properties, upgradeActionName, parameters);

            var context = HarshServerProvisionerContext.FromProperties(
                properties,
                upgradeActionName,
                parameters
                );

            _root.ProvisionAsync(context).RunSynchronously();
        }