/// <summary> /// Uninstall the plugin /// </summary> /// <returns>A task that represents the asynchronous operation</returns> public override async Task UninstallAsync() { //locales await _localizationService.DeleteLocaleResourceAsync("Plugins.ExchangeRate.EcbExchange.Error"); await base.UninstallAsync(); }
public override async Task UninstallAsync() { //locales await _localizationService.DeleteLocaleResourceAsync("Plugins.Api"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.Menu.Title"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.Menu.Settings.Title"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.Configure"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.GeneralSettings"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.EnableApi"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.EnableApi.Hint"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.Settings.GeneralSettingsTitle"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.Edit"); var apiRole = await _customerService.GetCustomerRoleBySystemNameAsync(Constants.Roles.ApiRoleSystemName); if (apiRole != null) { apiRole.Active = false; await _customerService.UpdateCustomerRoleAsync(apiRole); } await base.UninstallAsync(); }
public override async Task UninstallAsync() { //settings await _settingService.DeleteSettingAsync <ZarinpalPaymentSettings>(); //locales await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.Zarinpal.Fields.ZarinGate.Use"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.Zarinpal.Fields.ZarinGate.Type"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.Zarinpal.Fields.ZarinGate.Instructions"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.ZarinPal.Fields.Method"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.ZarinPal.Fields.Method.SOAP"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.ZarinPal.Fields.Method.REST"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.ZarinPal.Fields.UseSandbox"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.ZarinPal.Fields.MerchantID"); await _localizationService.DeleteLocaleResourceAsync("plugins.payments.zarinpal.PaymentMethodDescription"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.ZarinPal.Instructions"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.Zarinpal.Fields.RedirectionTip"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.Zarinpal.Fields.BlockOverseas"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.Zarinpal.Fields.RialToToman"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.Zarinpal.Fields.RialToToman.Instructions"); await base.UninstallAsync(); }
/// <summary> /// Uninstall the plugin /// </summary> public override async Task UninstallAsync() { await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.plugin.IsEnabled"); //locales await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Facebook.ClientKeyIdentifier"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Facebook.ClientKeyIdentifier.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Facebook.ClientSecret"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Facebook.ClientSecret.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Facebook.IsEnabled"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Facebook.IsEnabled.Hint"); //locales for Twitter await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Twitter.ConsumerKey"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Twitter.ConsumerKey.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Twitter.ConsumerSecret"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Twitter.ConsumerSecret.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Twitter.IsEnabled"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Twitter.IsEnabled.Hint"); //locales for Google await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Google.ClientId"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Google.ClientId.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Google.ClientSecret"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Google.ClientSecret.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Google.IsEnabled"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Google.IsEnabled.Hint"); //locales for Microsoft await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Microsoft.ClientId"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Microsoft.ClientId.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Microsoft.ClientSecret"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Microsoft.ClientSecret.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Microsoft.IsEnabled"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.Microsoft.IsEnabled.Hint"); //locales for LinkedIn await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.LinkedIn.ClientId"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.LinkedIn.ClientId.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.LinkedIn.ClientSecret"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.LinkedIn.ClientSecret.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.LinkedIn.IsEnabled"); await _localizationService.DeleteLocaleResourceAsync("Plugins.ExternalAuth.LinkedIn.IsEnabled.Hint"); await base.UninstallAsync(); }
public override async Task UninstallAsync() { //settings await _settingService.DeleteSettingAsync <PayGatePaymentSettings>(); //locales await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.RedirectionTip"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.TestMode"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.TestMode.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.PayGateID"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.PayGateID.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.EncryptionKey"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.EncryptionKey.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.EnableIpn"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.EnableIpn.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.EnableIpn.Hint2"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.EnableRedirect"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.EnableRedirect.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.EnableRedirect.Hint2"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.UseSSL"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.UseSSL.Hint"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Fields.UseSSL.Hint2"); await _localizationService.DeleteLocaleResourceAsync("Plugins.Payments.PayGate.Instructions"); await base.UninstallAsync(); }