Sitecore.FakeDb.Db.Dispose C# (CSharp) Méthode

Dispose() protected méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool True if disposing, otherwise false.
Résultat void
    protected virtual void Dispose(bool disposing)
    {
      if (this.disposed)
      {
        return;
      }

      if (!disposing)
      {
        return;
      }

      CorePipeline.Run("releaseFakeDb", new ReleaseDbArgs(this));

      this.dataStorageSwitcher.Dispose();
      this.databaseSwitcher.Dispose();
      while (this.databaseLanguages.Any())
      {
        this.databaseLanguages.Pop().Dispose();
      }

      if (Monitor.IsEntered(Lock))
      {
        Monitor.Exit(Lock);
      }

      this.disposed = true;
    }

Same methods

Db::Dispose ( ) : void