// Token: 0x06001647 RID: 5703 RVA: 0x0005411C File Offset: 0x0005231C private object GetParameterValueToProxy(string parameter) { object result = this.context.InvocationInfo.UserSpecifiedParameters[parameter]; if (Constants.IsPowerShellWebService) { string commandName = this.context.InvocationInfo.CommandName; List <string> propertiesNeedUrlTokenInputDecode = PswsKeyProperties.GetPropertiesNeedUrlTokenInputDecode(commandName); if (propertiesNeedUrlTokenInputDecode != null && propertiesNeedUrlTokenInputDecode.Contains(parameter) && this.context.InvocationInfo.Fields.Contains(parameter)) { result = this.context.InvocationInfo.Fields[parameter]; } } return(result); }
// Token: 0x06001658 RID: 5720 RVA: 0x00054594 File Offset: 0x00052794 public static void DecodeKeyProperties(string cmdletName, PropertyBag inputFields) { List <string> propertiesNeedUrlTokenInputDecode = PswsKeyProperties.GetPropertiesNeedUrlTokenInputDecode(cmdletName); foreach (string key in propertiesNeedUrlTokenInputDecode) { if (inputFields.IsModified(key)) { object obj = inputFields[key]; IIdentityParameter value; if (obj != null && PswsPropertyConverterModule.TryDecodeIIdentityParameter((IIdentityParameter)obj, out value)) { inputFields[key] = value; } } } }