Language

SessionOptions.SessionProvider Property

Definition

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.

public Azure.Storage.Blobs.Models.SessionProvider SessionProvider { get; set; }
member this.SessionProvider : Azure.Storage.Blobs.Models.SessionProvider with get, set
Public Property SessionProvider As SessionProvider

Property Value

Applies to