internal SessionStateWorkflowEntry(string name, string definition, ScopedItemOptions options, SessionStateEntryVisibility visibility, System.Management.Automation.WorkflowInfo workflow, string helpFile) : base(name, visibility)
 {
     this._definition = definition;
     this._options = options;
     this._workflow = workflow;
     this._helpFile = helpFile;
 }
 internal SessionStateFunctionEntry(string name, string definition, ScopedItemOptions options, SessionStateEntryVisibility visibility, System.Management.Automation.ScriptBlock scriptBlock, string helpFile) : base(name, visibility)
 {
     this._definition = definition;
     this._options = options;
     this._scriptBlock = scriptBlock;
     this._helpFile = helpFile;
 }
Example #3
0
 internal SessionStateAliasEntry(string name, string definition, string description, ScopedItemOptions options, SessionStateEntryVisibility visibility) : base(name, visibility)
 {
     this._description = string.Empty;
     this._definition = definition;
     base._commandType = CommandTypes.Alias;
     this._description = description;
     this._options = options;
 }
 internal SessionStateVariableEntry(string name, object value, string description, ScopedItemOptions options, Collection<Attribute> attributes, SessionStateEntryVisibility visibility) : base(name, visibility)
 {
     this._description = string.Empty;
     this._value = value;
     this._description = description;
     this._options = options;
     this._attributes = new Collection<Attribute>();
     this._attributes = attributes;
 }
Example #5
0
        private CmdletInfo NewCmdletInfo(
            CmdletConfigurationEntry entry,
            SessionStateEntryVisibility visibility)
        {
            CmdletInfo cmdletInfo = new CmdletInfo(entry.Name, entry.ImplementingType, entry.HelpFileName, entry.PSSnapIn, this._context);

            cmdletInfo.Visibility = visibility;
            return(cmdletInfo);
        }
Example #6
0
 internal SessionStateProviderEntry(
     string name,
     Type implementingType,
     string helpFileName,
     SessionStateEntryVisibility visibility)
     : base(name, visibility)
 {
     this._implementingType = implementingType;
     this._helpFileName     = helpFileName;
 }
Example #7
0
 internal SessionStateFunctionEntry(
     string name,
     string definition,
     ScopedItemOptions options,
     SessionStateEntryVisibility visibility)
     : base(name, visibility)
 {
     this._definition  = definition;
     this._commandType = CommandTypes.Function;
     this._options     = options;
 }
Example #8
0
 internal SessionStateCmdletEntry(
     string name,
     Type implementingType,
     string helpFileName,
     SessionStateEntryVisibility visibility)
     : base(name, visibility)
 {
     this._implementingType = implementingType;
     this._helpFileName     = helpFileName;
     this._commandType      = CommandTypes.Cmdlet;
 }
Example #9
0
 internal CommandInfo(CommandInfo other)
 {
     this._name                = string.Empty;
     this._type                = CommandTypes.Application;
     this._prefix              = "";
     this._module              = other._module;
     this._visibility          = other._visibility;
     this._arguments           = other._arguments;
     this.Context              = other.Context;
     this._name                = other._name;
     this._type                = other._type;
     this._copiedCommand       = other;
     this.DefiningLanguageMode = other.DefiningLanguageMode;
 }
Example #10
0
 internal CommandInfo(CommandInfo other)
 {
     this._name = string.Empty;
     this._type = CommandTypes.Application;
     this._prefix = "";
     this._module = other._module;
     this._visibility = other._visibility;
     this._arguments = other._arguments;
     this.Context = other.Context;
     this._name = other._name;
     this._type = other._type;
     this._copiedCommand = other;
     this.DefiningLanguageMode = other.DefiningLanguageMode;
 }
 internal SessionStateVariableEntry(
     string name,
     object value,
     string description,
     ScopedItemOptions options,
     Collection <Attribute> attributes,
     SessionStateEntryVisibility visibility)
     : base(name, visibility)
 {
     this._value       = value;
     this._description = description;
     this._options     = options;
     this._attributes  = new Collection <Attribute>();
     this._attributes  = attributes;
 }
 protected ConstrainedSessionStateEntry(string name, SessionStateEntryVisibility visibility) : base(name)
 {
     this._visibility = visibility;
 }
 internal SessionStateApplicationEntry(string path, SessionStateEntryVisibility visibility)
     : base(path, visibility)
 {
     this._path        = path;
     this._commandType = CommandTypes.Application;
 }
Example #14
0
 protected internal SessionStateCommandEntry(string name, SessionStateEntryVisibility visibility) : base(name, visibility)
 {
     this._isImported = true;
 }
Example #15
0
 internal SessionStateAliasEntry(string name, string definition, string description, ScopedItemOptions options, SessionStateEntryVisibility visibility) : base(name, visibility)
 {
     this._description = string.Empty;
     this._definition  = definition;
     base._commandType = CommandTypes.Alias;
     this._description = description;
     this._options     = options;
 }
 protected ConstrainedSessionStateEntry(string name, SessionStateEntryVisibility visibility) : base(name)
 {
     this._visibility = visibility;
 }
Example #17
0
 protected internal SessionStateCommandEntry(string name, SessionStateEntryVisibility visibility) : base(name, visibility)
 {
     this._isImported = true;
 }
Example #18
0
 protected internal SessionStateCommandEntry(string name, SessionStateEntryVisibility visibility)
     : base(name, visibility)
 {
 }
Example #19
0
 internal SessionStateCmdletEntry(string name, Type implementingType, string helpFileName, SessionStateEntryVisibility visibility) : base(name, visibility)
 {
     this._implementingType = implementingType;
     this._helpFileName = helpFileName;
     base._commandType = CommandTypes.Cmdlet;
 }
Example #20
0
 internal SessionStateScriptEntry(string path, SessionStateEntryVisibility visibility) : base(path, visibility)
 {
     this._path = path;
     base._commandType = CommandTypes.ExternalScript;
 }
 internal SessionStateScriptEntry(string path, SessionStateEntryVisibility visibility) : base(path, visibility)
 {
     this._path        = path;
     base._commandType = CommandTypes.ExternalScript;
 }
Example #22
0
 private CmdletInfo NewCmdletInfo(CmdletConfigurationEntry entry, SessionStateEntryVisibility visibility)
 {
     return new CmdletInfo(entry.Name, entry.ImplementingType, entry.HelpFileName, entry.PSSnapIn, this._context) { Visibility = visibility };
 }
 internal SessionStateApplicationEntry(string path, SessionStateEntryVisibility visibility) : base(path, visibility)
 {
     this._path = path;
     base._commandType = CommandTypes.Application;
 }
 internal SessionStateProviderEntry(string name, Type implementingType, string helpFileName, SessionStateEntryVisibility visibility) : base(name, visibility)
 {
     this._implementingType = implementingType;
     this._helpFileName = helpFileName;
 }
 internal SessionStateWorkflowEntry(string name, string definition, ScopedItemOptions options, SessionStateEntryVisibility visibility, System.Management.Automation.WorkflowInfo workflow, string helpFile) : base(name, visibility)
 {
     this._definition = definition;
     this._options    = options;
     this._workflow   = workflow;
     this._helpFile   = helpFile;
 }
 internal SessionStateFunctionEntry(string name, string definition, ScopedItemOptions options, SessionStateEntryVisibility visibility, System.Management.Automation.ScriptBlock scriptBlock, string helpFile) : base(name, visibility)
 {
     this._definition  = definition;
     this._options     = options;
     this._scriptBlock = scriptBlock;
     this._helpFile    = helpFile;
 }
 protected internal SessionStateCommandEntry(string name, SessionStateEntryVisibility visibility)
     : base(name, visibility)
 {
 }