void ProcessServiceMessage(ServiceMessage message) { switch (message.Name) { case ServiceMessageNames.SetVariable.Name: var variableName = message.GetValue(ServiceMessageNames.SetVariable.NameAttribute); var variableValue = message.GetValue(ServiceMessageNames.SetVariable.ValueAttribute); if (!string.IsNullOrWhiteSpace(variableName)) { variables.SetOutputVariable(variableName, variableValue); } break; } }
public void SetOutputVariable(string name, string value, IVariables variables, bool isSensitive = false) { SetOutputVariableButDoNotAddToVariables(name, value, isSensitive); variables?.SetOutputVariable(name, value); }