internal void UseExecutionContext()

in src/PSDocs.Azure/Pipeline/Output/PSPipelineWriter.cs [47:57]


        internal void UseExecutionContext(EngineIntrinsics executionContext)
        {
            if (executionContext == null)
                return;

            _LogError = GetPreferenceVariable(executionContext, ErrorPreference);
            _LogWarning = GetPreferenceVariable(executionContext, WarningPreference);
            _LogVerbose = GetPreferenceVariable(executionContext, VerbosePreference);
            _LogInformation = GetPreferenceVariable(executionContext, InformationPreference);
            _LogDebug = GetPreferenceVariable(executionContext, DebugPreference);
        }