IFileSystemAuthorizationService Interface
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.
Local service for checking file and folder access on Codespaces server or Live Share host. When this service is obtained with credentials associated with a Live Share guest, it will use session file access configuration. https://github.com/MicrosoftDocs/live-share/blob/master/docs/reference/security.md#controlling-file-access-and-visibility. When this service is obtained with credentials associated with the Codespaces client, it'll check if a file or directory is accessible to the client. Obtain this service using FileSystemAuthorizationService.
public interface class IFileSystemAuthorizationService
public interface IFileSystemAuthorizationService
type IFileSystemAuthorizationService = interface
Public Interface IFileSystemAuthorizationService
Remarks
Use IFileSystemAuthorizationService in a brokered service running on the server to test a local path before granting access to it to some possibly remote client.
Methods
GetAccessAsync(IReadOnlyList<Uri>, CancellationToken) |
Get access level of files and directories. |
GetLocalAccessAsync(IReadOnlyList<String>, CancellationToken) |
Get access level of local files and directories. |
Events
AccessChanged |
Occurs when access may have changed due to session configuration change. |