public new static RunspaceConfiguration Create()
        {
            RunspaceConfiguration runspaceConfiguration = null;

            if (MonadRunspaceConfiguration.singleShellConfiguration == MonadRunspaceConfiguration.SingleShellConfigurationMode.Mini)
            {
                MonadRunspaceConfiguration monadRunspaceConfiguration = new MonadRunspaceConfiguration();
                monadRunspaceConfiguration.miniShellCmdlets = new RunspaceConfigurationEntryCollection <CmdletConfigurationEntry>();
                foreach (CmdletConfigurationEntry[] items in MonadRunspaceConfiguration.cmdletConfigurationEntries)
                {
                    monadRunspaceConfiguration.miniShellCmdlets.Append(items);
                }
                runspaceConfiguration = monadRunspaceConfiguration;
            }
            else
            {
                runspaceConfiguration = RunspaceConfiguration.Create();
            }
            if (MonadRunspaceConfiguration.singleShellConfiguration == MonadRunspaceConfiguration.SingleShellConfigurationMode.Default)
            {
                if (MonadRunspaceConfiguration.IsEdgeMachine)
                {
                    MonadRunspaceConfiguration.AddPSSnapIn(runspaceConfiguration, "Microsoft.Exchange.Management.PowerShell.E2010");
                }
                else
                {
                    CmdletConfigurationEntry[] nonEdgeCmdletConfigurationEntries = MonadRunspaceConfiguration.GetNonEdgeCmdletConfigurationEntries();
                    runspaceConfiguration.Cmdlets.Append(nonEdgeCmdletConfigurationEntries);
                }
            }
            if (MonadRunspaceConfiguration.IsMixedOrDefaultMode())
            {
                foreach (string mshSnapInName in MonadRunspaceConfiguration.mshSnapInNames)
                {
                    MonadRunspaceConfiguration.AddPSSnapIn(runspaceConfiguration, mshSnapInName);
                }
                if (MonadRunspaceConfiguration.singleShellConfiguration == MonadRunspaceConfiguration.SingleShellConfigurationMode.Mixed)
                {
                    foreach (CmdletConfigurationEntry[] items2 in MonadRunspaceConfiguration.cmdletConfigurationEntries)
                    {
                        runspaceConfiguration.Cmdlets.Append(items2);
                    }
                }
            }
            return(runspaceConfiguration);
        }
 public static void ClearAll()
 {
     MonadRunspaceConfiguration.singleShellConfiguration = MonadRunspaceConfiguration.SingleShellConfigurationMode.Mini;
     MonadRunspaceConfiguration.ClearEntries();
 }
 // Token: 0x0600112F RID: 4399 RVA: 0x00034AA4 File Offset: 0x00032CA4
 public override RunspaceConfiguration CreateRunspaceConfiguration()
 {
     return(MonadRunspaceConfiguration.Create());
 }