BlobsStorage Constructors
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.
Overloads
BlobsStorage(String, String, JsonSerializer) |
Initializes a new instance of the BlobsStorage class. |
BlobsStorage(String, String, StorageTransferOptions, JsonSerializer) |
Initializes a new instance of the BlobsStorage class. |
BlobsStorage(Uri, TokenCredential, StorageTransferOptions, BlobClientOptions, JsonSerializer) |
Initializes a new instance of the BlobsStorage class. |
BlobsStorage(String, String, JsonSerializer)
Initializes a new instance of the BlobsStorage class.
public BlobsStorage (string dataConnectionString, string containerName, Newtonsoft.Json.JsonSerializer jsonSerializer = default);
new Microsoft.Bot.Builder.Azure.Blobs.BlobsStorage : string * string * Newtonsoft.Json.JsonSerializer -> Microsoft.Bot.Builder.Azure.Blobs.BlobsStorage
Public Sub New (dataConnectionString As String, containerName As String, Optional jsonSerializer As JsonSerializer = Nothing)
Parameters
- dataConnectionString
- String
Azure Storage connection string.
- containerName
- String
Name of the Blob container where entities will be stored.
- jsonSerializer
- Newtonsoft.Json.JsonSerializer
If passing in a custom JsonSerializer, we recommend the following settings:
jsonSerializer.TypeNameHandling = TypeNameHandling.None.
jsonSerializer.NullValueHandling = NullValueHandling.Include.
jsonSerializer.ContractResolver = new DefaultContractResolver().
jsonSerializer.SerializationBinder = new AllowedTypesSerializationBinder().
Applies to
BlobsStorage(String, String, StorageTransferOptions, JsonSerializer)
Initializes a new instance of the BlobsStorage class.
public BlobsStorage (string dataConnectionString, string containerName, Azure.Storage.StorageTransferOptions storageTransferOptions, Newtonsoft.Json.JsonSerializer jsonSerializer = default);
new Microsoft.Bot.Builder.Azure.Blobs.BlobsStorage : string * string * Azure.Storage.StorageTransferOptions * Newtonsoft.Json.JsonSerializer -> Microsoft.Bot.Builder.Azure.Blobs.BlobsStorage
Public Sub New (dataConnectionString As String, containerName As String, storageTransferOptions As StorageTransferOptions, Optional jsonSerializer As JsonSerializer = Nothing)
Parameters
- dataConnectionString
- String
Azure Storage connection string.
- containerName
- String
Name of the Blob container where entities will be stored.
- storageTransferOptions
- StorageTransferOptions
Used for providing options for parallel transfers StorageTransferOptions.
- jsonSerializer
- Newtonsoft.Json.JsonSerializer
If passing in a custom JsonSerializer, we recommend the following settings:
jsonSerializer.TypeNameHandling = TypeNameHandling.None.
jsonSerializer.NullValueHandling = NullValueHandling.Include.
jsonSerializer.ContractResolver = new DefaultContractResolver().
jsonSerializer.SerializationBinder = new AllowedTypesSerializationBinder().
Applies to
BlobsStorage(Uri, TokenCredential, StorageTransferOptions, BlobClientOptions, JsonSerializer)
Initializes a new instance of the BlobsStorage class.
public BlobsStorage (Uri blobContainerUri, Azure.Core.TokenCredential tokenCredential, Azure.Storage.StorageTransferOptions storageTransferOptions, Azure.Storage.Blobs.BlobClientOptions options = default, Newtonsoft.Json.JsonSerializer jsonSerializer = default);
new Microsoft.Bot.Builder.Azure.Blobs.BlobsStorage : Uri * Azure.Core.TokenCredential * Azure.Storage.StorageTransferOptions * Azure.Storage.Blobs.BlobClientOptions * Newtonsoft.Json.JsonSerializer -> Microsoft.Bot.Builder.Azure.Blobs.BlobsStorage
Public Sub New (blobContainerUri As Uri, tokenCredential As TokenCredential, storageTransferOptions As StorageTransferOptions, Optional options As BlobClientOptions = Nothing, Optional jsonSerializer As JsonSerializer = Nothing)
Parameters
- blobContainerUri
- Uri
Azure blob storage container Uri.
- tokenCredential
- TokenCredential
The token credential to authenticate to the Azure storage.
- storageTransferOptions
- StorageTransferOptions
Used for providing options for parallel transfers StorageTransferOptions.
- options
- BlobClientOptions
Client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.
- jsonSerializer
- Newtonsoft.Json.JsonSerializer
If passing in a custom JsonSerializer, we recommend the following settings:
jsonSerializer.TypeNameHandling = TypeNameHandling.None.
jsonSerializer.NullValueHandling = NullValueHandling.Include.
jsonSerializer.ContractResolver = new DefaultContractResolver().
jsonSerializer.SerializationBinder = new AllowedTypesSerializationBinder().