Пример #1
0
 /// <summary>
 /// Uninstalls the module by reverting any changes from <see cref="ModuleBase.Install"/> or <see cref="ModuleBase.Upgrade"/>.
 /// Automatically called by <see cref="ModuleBase.Uninstall"/>.
 /// There is no need to call the base method when overriding.
 /// </summary>
 /// <param name="context">The uninstall context.</param>
 protected virtual void Uninstall(IUninstallContext context)
 {
 }
 public void Uninstall(IUninstallContext context)
 {
     throw new NotSupportedException($@"Module {nameof(WebAppInitializerModule)} does not support uninstallation.");
 }
Пример #3
0
 void IInstallable.Uninstall(IUninstallContext context)
 {
     this.App = context.App;
     this.Uninstall(context);
     this.App = null;
 }
 public void Uninstall(IUninstallContext context)
 {
     this.IsUninstalled = true;
 }
 public void Uninstall(IUninstallContext context)
 {
     throw new NotSupportedException($@"Module {nameof(ConfigInitializerModule)} does not support uninstallation.");
 }
Пример #6
0
 /// <summary>
 /// Default implementation does nothing. Reimplement <see cref="IInstallable"/> to override.
 /// </summary>
 /// <param name="context">The uninstall context.</param>
 void IInstallable.Uninstall(IUninstallContext context)
 {
 }
 public void Uninstall(IUninstallContext context)
 {
     this.IsUninstalled = true;
 }
Пример #8
0
 /// <summary>
 /// Throws <see cref="NotSupportedException"/> unless overriden in a child class.
 /// </summary>
 /// <param name="context">The uninstall context.</param>
 protected override void Uninstall(IUninstallContext context) =>
 throw new NotSupportedException($"Module {this.GetType().GetAssemblyQualifiedName()} does not support uninstallation");