Beispiel #1
0
 public Task ReleaseShellContextAsync(ShellSettings settings)
 {
     if (!this.CanReleaseShell(settings))
     {
         return(Task.get_CompletedTask());
     }
     if (this._shellContexts.TryRemove(settings.get_Name(), out V_0))
     {
         V_0.Release();
     }
     stackVariable10 = this._shellContexts;
     stackVariable13 = V_0.get_Settings().get_Name();
     stackVariable14 = new ShellContext.PlaceHolder();
     stackVariable14.set_Settings(settings);
     dummyVar0 = stackVariable10.TryAdd(stackVariable13, stackVariable14);
     return(Task.get_CompletedTask());
 }