Xamarin.AzureStorage
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Xamarin.AzureStorage --version 1.0.0
NuGet\Install-Package Xamarin.AzureStorage -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xamarin.AzureStorage" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.AzureStorage --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xamarin.AzureStorage, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xamarin.AzureStorage as a Cake Addin #addin nuget:?package=Xamarin.AzureStorage&version=1.0.0 // Install Xamarin.AzureStorage as a Cake Tool #tool nuget:?package=Xamarin.AzureStorage&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AzureStorage
A Xamarin wrapper binding for Azure Storage APIs - Blob, Queue, Table
Usage
General
using Subsystems.AzureStorage.External;
....
....
CMPAzureStorageFactory.CreateBlobStorage("<Connection_String>", "<Container_Name>");
Data Models
public class CMPTableStorageModel : TableEntity {...}
public class CMPStorageOptions
{
public TimeSpan TimeToLive
public TimeSpan VisibilityTimeoutOrDelay
public OperationContext OperationContext
}
public class CMPTableStorageOptions : CMPStorageOptions
{
public TableRequestOptions TableRequestOptions
}
public class CMPBlobStorageOptions : CMPStorageOptions
{
public BlobContainerPublicAccessType BlobContainerPublicAccessType
public AccessCondition AccessCondition
public DeleteSnapshotsOption DeleteSnapshotsOption
public BlobRequestOptions BlobRequestOptions
}
public class CMPQueueStorageOptions : CMPStorageOptions
{
public QueueRequestOptions QueueRequestOptions
public MessageUpdateFields MessageUpdateFields
}
Create Storage Proxy
Blob
CMPAzureStorageFactory.CreateBlobStorage("<Connection_String>", "<Container_Name>");
Queue
CMPAzureStorageFactory.CreateQueueStorage("<Connection_String>", "<Queue_Name>");
Table
CMPAzureStorageFactory.CreateTableStorage("<Connection_String>");
Blob APIs
public async Task<Tuple<bool, CMPStorageError>> CreateBlobContainerAsync()
public async Task<Tuple<bool, CMPStorageError>> AddBytesToBlobAsync(byte[] blobBytesArray,
string blobNameString)
public async Task<Tuple<bool, CMPStorageError>> AddStreamToBlobAsync(Stream blobStream, string blobNameString)
public async Task<Tuple<bool, CMPStorageError>> DeleteBlobAsync(string blobNameString)
public async Task<Tuple<bool, CMPStorageError>> DeleteBlobContainerAsync()
public async Task<Tuple<byte[], CMPStorageError>> DownloadFromBlobAsync(string blobNameString)
Queue APIs
public async Task<Tuple<bool, CMPStorageError>> AddMessageAsync(string messageString,
string popupTokenString,
CMPQueueStorageOptions queueStorageOptions =
null)
public async Task<int> GetMessagesCountAsync(CMPQueueStorageOptions queueStorageOptions)
public async Task<Tuple<string, string, CMPStorageError>> PeekMessageAsync(CMPQueueStorageOptions
queueStorageOptions = null)
public async Task<Tuple<bool, CMPStorageError>> DeQueueMessageAsync(TimeSpan visibilityTimeOut,
CMPQueueStorageOptions queueStorageOptions)
public async Task<Tuple<bool, CMPStorageError>> DeQueueBatchMessagesAsync(TimeSpan visibilityTimeOut,
int deQueueCount,
CMPQueueStorageOptions
queueStorageOptions = null)
public async Task<Tuple<bool, CMPStorageError>> UpdateMessageAsync(string updateMessageString,
TimeSpan visibilityTimeOut,
CMPQueueStorageOptions
queueStorageOptions = null)
await _azureQueueStorageProxy.UpdateMessageAsync(<UpdateMessage>, <TimeOut>, <QueueOptons>);
public async Task<Tuple<bool, CMPStorageError>> DeleteMessageAsync(CloudQueueMessage queueMessage,
CMPQueueStorageOptions
queueStorageOptions = null)
public async Task<Tuple<bool, CMPStorageError>> DeleteBatchMessagesAsync(List<CloudQueueMessage>
queueMessagesList,
CMPQueueStorageOptions
queueStorageOptions = null)
public async Task<Tuple<bool, CMPStorageError>> DeleteQueueAsync(CMPQueueStorageOptions queueStorageOptions =
null)
Table APIs
Callbacks
public delegate void FetchProgressCallback<T>(List<T> fetchedResults)
Methods
public async Task<Tuple<bool, CMPStorageError>> CreateTableAsync(string tableNameString)
public async Task<Tuple<bool, CMPStorageError>> DeleteTableAsync(string tableNameString)
public async Task<Tuple<T, CMPStorageError>> InsertRowAsync<T>(T insertModel, string tableNameString)
public async Task<Tuple<T, CMPStorageError>> InsertRowsInBatchAsync<T>(T insertModel, string tableNameString)
public async Task<Tuple<T, CMPStorageError>> UpdateRowAsync<T>(string tableNameString, T updateModel)
public async Task<Tuple<T, CMPStorageError>> UpdateRowsAsync<T>(string tableNameString, T updateModel)
public async Task<List<Tuple<T, CMPStorageError>>> UpdateRowsAsync<T>(string tableNameString,
string partitionKeyString)
public async Task<Tuple<T, CMPStorageError>> DeleteRowAsync<T>(string tableNameString, T deleteModel)
public async Task<Tuple<T, CMPStorageError>> DeleteRowsAsync<T>(string tableNameString, T deleteModel)
public async Task<Tuple<List<T>, CMPStorageError>> FetchAllAsync<T>(string tableNameString,
FetchProgressCallback<T>
fetchProgressCallback)
public async Task<Tuple<List<T>, CMPStorageError>> FetchAsync<T>(string tableNameString,
string partitionKeyString,
FetchProgressCallback<T> fetchProgressCallback)
public async Task<Tuple<T, CMPStorageError>> FetchAsync<T>(string tableNameString,
string partitionKeyString,
string rowKeyString)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid81 is compatible. |
Xamarin.iOS | xamarinios10 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
MonoAndroid 8.1
- Microsoft.CSharp (>= 4.3.0)
- Microsoft.NETCore.Platforms (>= 1.1.0)
- Microsoft.Win32.Primitives (>= 4.3.0)
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 10.0.2)
- System.AppContext (>= 4.3.0)
- System.Collections (>= 4.3.0)
- System.Collections.Concurrent (>= 4.3.0)
- System.ComponentModel.TypeConverter (>= 4.3.0)
- System.Console (>= 4.3.0)
- System.Diagnostics.Debug (>= 4.3.0)
- System.Diagnostics.Tools (>= 4.3.0)
- System.Diagnostics.Tracing (>= 4.3.0)
- System.Globalization (>= 4.3.0)
- System.Globalization.Calendars (>= 4.3.0)
- System.IO (>= 4.3.0)
- System.IO.Compression (>= 4.3.0)
- System.IO.Compression.ZipFile (>= 4.3.0)
- System.IO.FileSystem (>= 4.3.0)
- System.IO.FileSystem.Primitives (>= 4.3.0)
- System.Linq (>= 4.3.0)
- System.Linq.Expressions (>= 4.3.0)
- System.Net.Http (>= 4.3.0)
- System.Net.Primitives (>= 4.3.0)
- System.Net.Sockets (>= 4.3.0)
- System.ObjectModel (>= 4.3.0)
- System.Reflection (>= 4.3.0)
- System.Reflection.Extensions (>= 4.3.0)
- System.Reflection.Primitives (>= 4.3.0)
- System.Resources.ResourceManager (>= 4.3.0)
- System.Runtime (>= 4.3.0)
- System.Runtime.Extensions (>= 4.3.0)
- System.Runtime.Handles (>= 4.3.0)
- System.Runtime.InteropServices (>= 4.3.0)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- System.Runtime.Numerics (>= 4.3.0)
- System.Runtime.Serialization.Formatters (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
- System.Security.Cryptography.Algorithms (>= 4.3.0)
- System.Security.Cryptography.Encoding (>= 4.3.0)
- System.Security.Cryptography.Primitives (>= 4.3.0)
- System.Security.Cryptography.X509Certificates (>= 4.3.0)
- System.Text.Encoding (>= 4.3.0)
- System.Text.Encoding.Extensions (>= 4.3.0)
- System.Text.RegularExpressions (>= 4.3.0)
- System.Threading (>= 4.3.0)
- System.Threading.Tasks (>= 4.3.0)
- System.Threading.Timer (>= 4.3.0)
- System.Xml.ReaderWriter (>= 4.3.0)
- System.Xml.XDocument (>= 4.3.0)
- System.Xml.XmlDocument (>= 4.3.0)
- WindowsAzure.Storage (>= 9.1.1)
-
Xamarin.iOS 1.0
- Microsoft.CSharp (>= 4.3.0)
- Microsoft.NETCore.Platforms (>= 1.1.0)
- Microsoft.Win32.Primitives (>= 4.3.0)
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 10.0.2)
- System.AppContext (>= 4.3.0)
- System.Collections (>= 4.3.0)
- System.Collections.Concurrent (>= 4.3.0)
- System.ComponentModel.TypeConverter (>= 4.3.0)
- System.Console (>= 4.3.0)
- System.Diagnostics.Debug (>= 4.3.0)
- System.Diagnostics.Tools (>= 4.3.0)
- System.Diagnostics.Tracing (>= 4.3.0)
- System.Globalization (>= 4.3.0)
- System.Globalization.Calendars (>= 4.3.0)
- System.IO (>= 4.3.0)
- System.IO.Compression (>= 4.3.0)
- System.IO.Compression.ZipFile (>= 4.3.0)
- System.IO.FileSystem (>= 4.3.0)
- System.IO.FileSystem.Primitives (>= 4.3.0)
- System.Linq (>= 4.3.0)
- System.Linq.Expressions (>= 4.3.0)
- System.Net.Http (>= 4.3.0)
- System.Net.Primitives (>= 4.3.0)
- System.Net.Sockets (>= 4.3.0)
- System.ObjectModel (>= 4.3.0)
- System.Reflection (>= 4.3.0)
- System.Reflection.Extensions (>= 4.3.0)
- System.Reflection.Primitives (>= 4.3.0)
- System.Resources.ResourceManager (>= 4.3.0)
- System.Runtime (>= 4.3.0)
- System.Runtime.Extensions (>= 4.3.0)
- System.Runtime.Handles (>= 4.3.0)
- System.Runtime.InteropServices (>= 4.3.0)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- System.Runtime.Numerics (>= 4.3.0)
- System.Runtime.Serialization.Formatters (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
- System.Security.Cryptography.Algorithms (>= 4.3.0)
- System.Security.Cryptography.Encoding (>= 4.3.0)
- System.Security.Cryptography.Primitives (>= 4.3.0)
- System.Security.Cryptography.X509Certificates (>= 4.3.0)
- System.Text.Encoding (>= 4.3.0)
- System.Text.Encoding.Extensions (>= 4.3.0)
- System.Text.RegularExpressions (>= 4.3.0)
- System.Threading (>= 4.3.0)
- System.Threading.Tasks (>= 4.3.0)
- System.Threading.Timer (>= 4.3.0)
- System.Xml.ReaderWriter (>= 4.3.0)
- System.Xml.XDocument (>= 4.3.0)
- System.Xml.XmlDocument (>= 4.3.0)
- WindowsAzure.Storage (>= 9.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1. Initial Release for AzureStorage component
2. Supporting Blob, Queue, Table only