public void Dispose() { AnyUiDisplayContextHtml.deleteSession(sessionNumber); sessionTotal--; if (env != null) { env.Close(); } }
public virtual void Close() { if (!IsOpen) { return; } Env.Close(); Env = null; }
public void AddByAasxFn(PackageCentral packageCentral, string fn) { try { // load var pkg = new AdminShellPackageEnv(fn); // for each Admin Shell and then each Asset this.AddByAasPackage(packageCentral, pkg, fn); // close directly! pkg.Close(); } catch (Exception ex) { AdminShellNS.LogInternally.That.SilentlyIgnoredError(ex); } }
public void AddByAasxFn(string fn) { try { // load var pkg = new AdminShellPackageEnv(fn); // for each Admin Shell and then each Asset if (pkg.AasEnv?.AdministrationShells?.Count > 0) { foreach (var aas in pkg.AasEnv.AdministrationShells) { this.AddByAas(pkg.AasEnv, aas, fn); } } // close directly! pkg.Close(); } catch { } }
public void AddByAasxFn(string fn) { try { // load var pkg = new AdminShellPackageEnv(fn); // for each Admin Shell and then each Asset if (pkg.AasEnv?.AdministrationShells?.Count > 0) { foreach (var aas in pkg.AasEnv.AdministrationShells) { this.AddByAas(pkg.AasEnv, aas, fn); } } // close directly! pkg.Close(); } catch (Exception ex) { AdminShellNS.LogInternally.That.SilentlyIgnoredError(ex); } }