-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add api to find unit processors based on search path #5386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this code can find (and even execute) resources that are not on the configured PATH, we should not export any resource that isn't discoverable by a standard call to dsc.exe
. If we do, the configuration won't work without special code to find them again on the apply-side.
src/Microsoft.Management.Configuration/Microsoft.Management.Configuration.idl
Outdated
Show resolved
Hide resolved
} | ||
else | ||
{ | ||
AICLI_LOG(Config, Warning, << "Set Processor does not support FindUnitProcessors operation"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this should be an error to indicate that the operation could not be performed. We already do similar with the GetAll*
functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant that the API should produce an error.
else | ||
{ | ||
AICLI_LOG(Config, Warning, << "Set Processor does not support FindUnitProcessors operation"); | ||
return winrt::single_threaded_vector<IConfigurationUnitProcessorDetails>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same error as ConfigurationProcessor
.
Added EnvironmentVariables customization support for ProcessExecution.
Added ProcessorRunSettings to customize each processor run settings. Currently only used to change path environment variables for processor runs.
Added support to find unit processors based on search path. If search paths not provided, the api will list all unit processors that can be found.
Added e2e tests.
Microsoft Reviewers: Open in CodeFlow