AgentSessionFiles Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Session-scoped file operations for hosted agent sandboxes. These endpoints enable uploading, downloading, listing, and deleting files within a live ADC sandbox session. All file content is streamed end-to-end (no buffering in Agents service memory). Sessions are scoped to agent endpoints (not individual versions), allowing the endpoint to evolve the backing agent version independently of the session lifecycle.
public class AgentSessionFiles
type AgentSessionFiles = class
Public Class AgentSessionFiles
- Inheritance
-
AgentSessionFiles
Constructors
| Name | Description |
|---|---|
| AgentSessionFiles() |
Initializes a new instance of AgentSessionFiles for mocking. |
Properties
| Name | Description |
|---|---|
| Pipeline |
The HTTP pipeline for sending and receiving REST requests and responses. |
Methods
| Name | Description |
|---|---|
| DeleteSessionFile(String, String, String, Nullable<Boolean>, CancellationToken) |
Delete a file or directory from the session sandbox.
If |
| DeleteSessionFileAsync(String, String, String, Nullable<Boolean>, CancellationToken) |
Delete a file or directory from the session sandbox.
If |
| DownloadSessionFile(String, String, String, String, CancellationToken) |
Download a file from the session sandbox as a binary stream. Also return file as binary data. |
| DownloadSessionFileAsync(String, String, String, String, CancellationToken) |
Download a file from the session sandbox as a binary stream. Also return file as binary data. |
| GetSessionFiles(String, String, String, CancellationToken) |
[Protocol Method] List files and directories at a given path in the session sandbox. Returns only the immediate children of the specified directory (non-recursive).
|
| GetSessionFilesAsync(String, String, String, CancellationToken) |
[Protocol Method] List files and directories at a given path in the session sandbox. Returns only the immediate children of the specified directory (non-recursive).
|
| UploadSessionFile(String, String, String, String, CancellationToken) |
Upload a file to the session sandbox via binary stream. Maximum file size is 50 MB. Uploads exceeding this limit return 413 Payload Too Large.
|
| UploadSessionFileAsync(String, String, String, String, CancellationToken) |
Upload a file to the session sandbox via binary stream. Maximum file size is 50 MB. Uploads exceeding this limit return 413 Payload Too Large.
|