Język

SessionOptions Class

Definition

Options for configuring session token authentication for blob operations.

public class SessionOptions
type SessionOptions = class
Public Class SessionOptions
Inheritance
SessionOptions

Constructors

Name Description
SessionOptions()

Properties

Name Description
AccountName

The Account name to use for signing the session key. Optional.

SessionMode

The session authentication mode to use for blob operations.

SessionProvider

An optional session provider that owns the session cache and mints sessions. Construct one with ContainerSessionProvider(Uri, TokenCredential, BlobClientOptions), which is for TokenCredential authentication only. The provider must target the same blob service endpoint as the client that this is attached to. Sessions are cached per container, so clients configured with the same provider share its cached sessions and a session is created once per container no matter how many clients use it. When not set, the client creates a provider of its own, shared only with the clients derived from it (for example the container and blob clients created from a service client). Separately constructed clients do not share a cache, so each creates its own sessions.

Applies to