You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason will be displayed to describe this comment to others. Learn more.
This is great, is there existing docs on call patterns for using this? Does a consumer have to run this in order to utilize WSLC first? Maybe add some docs on how this particular method is to be used properly.
Maybe some topical documentation on how to deploy and use the SDK and examples of using this method to call it.
IReadOnlyList<T> does not define Contains; this call only resolves through the LINQ extension, but this reference example does not import System.Linq. As written, copying the snippet into a normal C# file fails to compile; use the same explicit foreach check shown in the end-to-end example (or document/add the required import).
This issue also appears on line 62 of the same file.
The example assigns to pullOptions, but this snippet never declares it, making the new authentication example incomplete as written. Create a PullImageOptions object before setting RegistryAuth.
Declare authentication before constructing the example
authentication is not declared anywhere in this snippet, so the constructor example cannot be compiled or copied as shown. Either demonstrate the preceding Session::Authenticate call or use an explicitly supplied registry-auth value.
Declare PullImageOptions before assigning registry authentication
The example assigns to pullOptions, but no variable with that name is declared in this page's snippet, so it cannot be copied as shown. Construct the PullImageOptions instance before assigning the returned registry authentication value.
IReadOnlyList.Contains requires LINQ or explicit iteration
IReadOnlyList<T> does not define Contains; this snippet has no using System.Linq, so the shown code does not compile as written. Iterate over missing (as the end-to-end example does) or include the required LINQ import.
This issue also appears on line 61 of the same file.
The WSL container API exposes a C API for creating sessions, creating containers inside those sessions, starting processes, managing images, managing VHD-backed storage, and checking/installing required platform components.
The WSL container API lets Windows app developers use Linux containers as part of their app logic. For an overview of the WSL container feature and the `wslc.exe` command-line interface, see [WSL container](https://learn.microsoft.com/windows/wsl/).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of the Pull Request
Updates the docs for the WSLC SDK API to the latest API surface. Includes updates for the C, C++ and C# docs.
Generated by Copilot.
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed