Class TaskuraiStateClient
A TaskuraiStateClient provides access to the Taskurai State api.
Assembly: Taskurai.dll
public class TaskuraiStateClient : TaskuraiBaseClient
Inheritance: System.Object
-> Taskurai.TaskuraiBaseClient
Methods
SaveState(string, StateInput, CancellationToken)
Saves a new state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual StateResponse SaveState(string storeName, StateInput input, CancellationToken cancellationToken = default)
Returns
Taskurai.Models.StateResponse: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveStateAsync(string, StateInput, CancellationToken)
Saves a new state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<StateResponse> SaveStateAsync(string storeName, StateInput input, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Taskurai.Models.StateResponse>
: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBlobState(string, StateInput, string, bool, CancellationToken)
Saves a new blob state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual StateResponse SaveBlobState(string storeName, StateInput input, string filePath, bool overwrite = false, CancellationToken cancellationToken = default)
Returns
Taskurai.Models.StateResponse: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.String | filePath | File path containing the content to upload |
System.Boolean | overwrite | Should existings blobs be overwritten. Default is false. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBlobStateAsync(string, StateInput, string, bool, CancellationToken)
Saves a new state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<StateResponse> SaveBlobStateAsync(string storeName, StateInput input, string filePath, bool overwrite = false, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Taskurai.Models.StateResponse>
: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.String | filePath | File path containing the content to upload |
System.Boolean | overwrite | Should existings blobs be overwritten. Default is false. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBlobState(string, StateInput, string, BlobUploadOptions, CancellationToken)
Saves a new blob state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual StateResponse SaveBlobState(string storeName, StateInput input, string filePath, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns
Taskurai.Models.StateResponse: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.String | filePath | File path containing the content to upload |
Azure.Storage.Blobs.Models.BlobUploadOptions | options | Upload options. Azure.Storage.Blobs.Models.BlobUploadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBlobStateAsync(string, StateInput, string, BlobUploadOptions, CancellationToken)
Saves a new state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<StateResponse> SaveBlobStateAsync(string storeName, StateInput input, string filePath, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Taskurai.Models.StateResponse>
: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.String | filePath | File path containing the content to upload |
Azure.Storage.Blobs.Models.BlobUploadOptions | options | Upload options. Azure.Storage.Blobs.Models.BlobUploadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBlobState(string, StateInput, Stream, bool, CancellationToken)
Saves a new blob state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual StateResponse SaveBlobState(string storeName, StateInput input, Stream content, bool overwrite = false, CancellationToken cancellationToken = default)
Returns
Taskurai.Models.StateResponse: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.IO.Stream | content | A System.IO.Stream containing the content to upload. |
System.Boolean | overwrite | Should existings blobs be overwritten. Default is false. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBlobStateAsync(string, StateInput, Stream, bool, CancellationToken)
Saves a new state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<StateResponse> SaveBlobStateAsync(string storeName, StateInput input, Stream content, bool overwrite = false, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Taskurai.Models.StateResponse>
: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.IO.Stream | content | A System.IO.Stream containing the content to upload. |
System.Boolean | overwrite | Should existings blobs be overwritten. Default is false. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBlobState(string, StateInput, Stream, BlobUploadOptions, CancellationToken)
Saves a new blob state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual StateResponse SaveBlobState(string storeName, StateInput input, Stream content, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns
Taskurai.Models.StateResponse: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.IO.Stream | content | A System.IO.Stream containing the content to upload. |
Azure.Storage.Blobs.Models.BlobUploadOptions | options | Upload options. Azure.Storage.Blobs.Models.BlobUploadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBlobStateAsync(string, StateInput, Stream, BlobUploadOptions, CancellationToken)
Saves a new state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<StateResponse> SaveBlobStateAsync(string storeName, StateInput input, Stream content, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Taskurai.Models.StateResponse>
: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.IO.Stream | content | A System.IO.Stream containing the content to upload. |
Azure.Storage.Blobs.Models.BlobUploadOptions | options | Upload options. Azure.Storage.Blobs.Models.BlobUploadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBlobState(string, StateInput, BinaryData, bool, CancellationToken)
Saves a new blob state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual StateResponse SaveBlobState(string storeName, StateInput input, BinaryData data, bool overwrite = false, CancellationToken cancellationToken = default)
Returns
Taskurai.Models.StateResponse: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.BinaryData | data | A System.BinaryData containing the content to upload. |
System.Boolean | overwrite | Should existings blobs be overwritten. Default is false. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBlobStateAsync(string, StateInput, BinaryData, bool, CancellationToken)
Saves a new state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<StateResponse> SaveBlobStateAsync(string storeName, StateInput input, BinaryData data, bool overwrite = false, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Taskurai.Models.StateResponse>
: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.BinaryData | data | A System.BinaryData containing the content to upload. |
System.Boolean | overwrite | Should existings blobs be overwritten. Default is false. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBlobState(string, StateInput, BinaryData, BlobUploadOptions, CancellationToken)
Saves a new blob state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual StateResponse SaveBlobState(string storeName, StateInput input, BinaryData data, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns
Taskurai.Models.StateResponse: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.BinaryData | data | A System.BinaryData containing the content to upload. |
Azure.Storage.Blobs.Models.BlobUploadOptions | options | Upload options. Azure.Storage.Blobs.Models.BlobUploadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBlobStateAsync(string, StateInput, BinaryData, BlobUploadOptions, CancellationToken)
Saves a new state entry.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<StateResponse> SaveBlobStateAsync(string storeName, StateInput input, BinaryData data, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Taskurai.Models.StateResponse>
: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateInput | input | Taskurai.Models.StateInput. |
System.BinaryData | data | A System.BinaryData containing the content to upload. |
Azure.Storage.Blobs.Models.BlobUploadOptions | options | Upload options. Azure.Storage.Blobs.Models.BlobUploadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
UploadBlob(StateResponse, string, bool, CancellationToken)
Upload blob for a state (created with hasBlob = true).
public virtual Response<BlobContentInfo> UploadBlob(StateResponse stateResponse, string filePath, bool overwrite = false, CancellationToken cancellationToken = default)
Returns
Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.String | filePath | File path containing the content to upload |
System.Boolean | overwrite | Should existings blobs be overwritten. Default is false. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
UploadBlob(StateResponse, string, BlobUploadOptions, CancellationToken)
Upload blob for a state (created with hasBlob = true).
public virtual Response<BlobContentInfo> UploadBlob(StateResponse stateResponse, string filePath, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns
Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.String | filePath | File path containing the content to upload |
Azure.Storage.Blobs.Models.BlobUploadOptions | options | Upload options. Azure.Storage.Blobs.Models.BlobUploadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
UploadBlobAsync(StateResponse, string, bool, CancellationToken)
Upload blob for a state (created with hasBlob = true).
public virtual Task<Response<BlobContentInfo>> UploadBlobAsync(StateResponse stateResponse, string filePath, bool overwrite = false, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.String | filePath | File path containing the content to upload |
System.Boolean | overwrite | Should existings blobs be overwritten. Default is false. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
UploadBlobAsync(StateResponse, string, BlobUploadOptions, CancellationToken)
Upload blob for a state (created with hasBlob = true).
public virtual Task<Response<BlobContentInfo>> UploadBlobAsync(StateResponse stateResponse, string filePath, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.String | filePath | File path containing the content to upload |
Azure.Storage.Blobs.Models.BlobUploadOptions | options | Upload options. Azure.Storage.Blobs.Models.BlobUploadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
UploadBlob(StateResponse, Stream, bool, CancellationToken)
Upload blob for a state (created with hasBlob = true).
public virtual Response<BlobContentInfo> UploadBlob(StateResponse stateResponse, Stream content, bool overwrite = false, CancellationToken cancellationToken = default)
Returns
Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.IO.Stream | content | A System.IO.Stream containing the content to upload. |
System.Boolean | overwrite | Should existings blobs be overwritten. Default is false. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
UploadBlob(StateResponse, Stream, BlobUploadOptions, CancellationToken)
Upload blob for a state (created with hasBlob = true).
public virtual Response<BlobContentInfo> UploadBlob(StateResponse stateResponse, Stream content, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns
Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.IO.Stream | content | A System.IO.Stream containing the content to upload. |
Azure.Storage.Blobs.Models.BlobUploadOptions | options | Upload options. Azure.Storage.Blobs.Models.BlobUploadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
UploadBlobAsync(StateResponse, Stream, bool, CancellationToken)
Upload blob for a state (created with hasBlob = true).
public virtual Task<Response<BlobContentInfo>> UploadBlobAsync(StateResponse stateResponse, Stream content, bool overwrite = false, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.IO.Stream | content | A System.IO.Stream containing the content to upload. |
System.Boolean | overwrite | Should existings blobs be overwritten. Default is false. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
UploadBlobAsync(StateResponse, Stream, BlobUploadOptions, CancellationToken)
Upload blob for a state (created with hasBlob = true).
public virtual Task<Response<BlobContentInfo>> UploadBlobAsync(StateResponse stateResponse, Stream content, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.IO.Stream | content | A System.IO.Stream containing the content to upload. |
Azure.Storage.Blobs.Models.BlobUploadOptions | options | Upload options. Azure.Storage.Blobs.Models.BlobUploadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
UploadBlob(StateResponse, BinaryData, bool, CancellationToken)
Upload blob for a state (created with hasBlob = true).
public virtual Response<BlobContentInfo> UploadBlob(StateResponse stateResponse, BinaryData content, bool overwrite = false, CancellationToken cancellationToken = default)
Returns
Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.BinaryData | content | A System.BinaryData containing the content to upload. |
System.Boolean | overwrite | Should existings blobs be overwritten. Default is false. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
UploadBlob(StateResponse, BinaryData, BlobUploadOptions, CancellationToken)
Upload blob for a state (created with hasBlob = true).
public virtual Response<BlobContentInfo> UploadBlob(StateResponse stateResponse, BinaryData content, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns
Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.BinaryData | content | A System.BinaryData containing the content to upload. |
Azure.Storage.Blobs.Models.BlobUploadOptions | options | Upload options. Azure.Storage.Blobs.Models.BlobUploadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
UploadBlobAsync(StateResponse, BinaryData, bool, CancellationToken)
Upload blob for a state (created with hasBlob = true).
public virtual Task<Response<BlobContentInfo>> UploadBlobAsync(StateResponse stateResponse, BinaryData content, bool overwrite = false, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.BinaryData | content | A System.BinaryData containing the content to upload. |
System.Boolean | overwrite | Should existings blobs be overwritten. Default is false. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
UploadBlobAsync(StateResponse, BinaryData, BlobUploadOptions, CancellationToken)
Upload blob for a state (created with hasBlob = true).
public virtual Task<Response<BlobContentInfo>> UploadBlobAsync(StateResponse stateResponse, BinaryData content, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.BinaryData | content | A System.BinaryData containing the content to upload. |
Azure.Storage.Blobs.Models.BlobUploadOptions | options | Upload options. Azure.Storage.Blobs.Models.BlobUploadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBulkState(string, StateBulkInput, CancellationToken)
Save a array of state in the state store using id and options.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual IEnumerable<StateResponse> SaveBulkState(string storeName, StateBulkInput input, CancellationToken cancellationToken = default)
Returns
System.Collections.Generic.IEnumerable<Taskurai.Models.StateResponse>
: System.Collections.Generic.IEnumerable%601
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateBulkInput | input | Taskurai.Models.StateBulkInput. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
SaveBulkStateAsync(string, StateBulkInput, CancellationToken)
Save a array of state in the state store using id and options.
Required scope: Taskurai.State.Create
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<IEnumerable<StateResponse>> SaveBulkStateAsync(string storeName, StateBulkInput input, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Taskurai.Models.StateResponse>>
: System.Collections.Generic.IEnumerable%601
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateBulkInput | input | Taskurai.Models.StateBulkInput. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
BulkTransaction(string, StateBulkTransactionInput, CancellationToken)
Bulk upsert and delete state operations in the state store using id and options using a transaction.
Required scope: Taskurai.State.Create
, Taskurai.State.Delete
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual IEnumerable<StateResponse> BulkTransaction(string storeName, StateBulkTransactionInput input, CancellationToken cancellationToken = default)
Returns
System.Collections.Generic.IEnumerable<Taskurai.Models.StateResponse>
: List of upserted state entries: System.Collections.Generic.IEnumerable%601
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateBulkTransactionInput | input | Taskurai.Models.StateBulkTransactionInput. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
BulkTransactionAsync(string, StateBulkTransactionInput, CancellationToken)
Bulk upsert and delete state operations in the state store using id and options using a transaction.
Required scope: Taskurai.State.Create
, Taskurai.State.Delete
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<IEnumerable<StateResponse>> BulkTransactionAsync(string storeName, StateBulkTransactionInput input, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Taskurai.Models.StateResponse>>
: List of upserted state entries: System.Collections.Generic.IEnumerable%601
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateBulkTransactionInput | input | Taskurai.Models.StateBulkTransactionInput. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
ListState(string, StateListInput, CancellationToken)
Enumerate state.
Required scope: Taskurai.State.Read
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual IEnumerable<StateResponse> ListState(string storeName, StateListInput input = null, CancellationToken cancellationToken = default)
Returns
System.Collections.Generic.IEnumerable<Taskurai.Models.StateResponse>
: System.Collections.Generic.IEnumerable%601
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateListInput | input | Taskurai.Models.StateListInput. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
ListStateAsync(string, StateListInput, CancellationToken)
Enumerate state.
Required scope: Taskurai.State.Read
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<IEnumerable<StateResponse>> ListStateAsync(string storeName, StateListInput input = null, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Taskurai.Models.StateResponse>>
: System.Collections.Generic.IEnumerable%601
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateListInput | input | Taskurai.Models.StateListInput. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
GetState(string, string, StateGetOptions, CancellationToken)
Get a state entry.
Required scope: Taskurai.State.Read
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual StateResponse GetState(string storeName, string id, StateGetOptions options = null, CancellationToken cancellationToken = default)
Returns
Taskurai.Models.StateResponse: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
System.String | id | State ID. |
Taskurai.Models.StateGetOptions | options | Taskurai.Models.StateGetOptions. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
GetStateAsync(string, string, StateGetOptions, CancellationToken)
Get a state entry.
Required scope: Taskurai.State.Read
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<StateResponse> GetStateAsync(string storeName, string id, StateGetOptions options = null, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Taskurai.Models.StateResponse>
: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
System.String | id | State ID. |
Taskurai.Models.StateGetOptions | options | Taskurai.Models.StateGetOptions. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
GetBlobStateTo(string, string, string, StateGetOptions, BlobDownloadToOptions, CancellationToken)
Download blob and get a blob state entry.
Required scope: Taskurai.State.Read
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual StateResponse GetBlobStateTo(string storeName, string id, string filePath, StateGetOptions options = null, BlobDownloadToOptions downloadOptions = null, CancellationToken cancellationToken = default)
Returns
Taskurai.Models.StateResponse: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
System.String | id | State ID. |
System.String | filePath | File path to write download content to. |
Taskurai.Models.StateGetOptions | options | Taskurai.Models.StateGetOptions. |
Azure.Storage.Blobs.Models.BlobDownloadToOptions | downloadOptions | Azure.Storage.Blobs.Models.BlobDownloadToOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
GetBlobStateToAsync(string, string, string, StateGetOptions, BlobDownloadToOptions, CancellationToken)
Download blob and get a blob state entry.
Required scope: Taskurai.State.Read
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<StateResponse> GetBlobStateToAsync(string storeName, string id, string filePath, StateGetOptions options = null, BlobDownloadToOptions downloadOptions = null, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Taskurai.Models.StateResponse>
: Taskurai.Models.StateResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
System.String | id | State ID. |
System.String | filePath | File path to write download content to. |
Taskurai.Models.StateGetOptions | options | Taskurai.Models.StateGetOptions. |
Azure.Storage.Blobs.Models.BlobDownloadToOptions | downloadOptions | Azure.Storage.Blobs.Models.BlobDownloadToOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
GetBlobStateContent(string, string, StateGetOptions, BlobDownloadOptions, CancellationToken)
Download content of a blob for a state and get a blob state entry.
Required scope: Taskurai.State.Read
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual StateDownloadResponse GetBlobStateContent(string storeName, string id, StateGetOptions options = null, BlobDownloadOptions downloadOptions = null, CancellationToken cancellationToken = default)
Returns
Taskurai.Models.StateDownloadResponse: Taskurai.Models.StateDownloadResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
System.String | id | State ID. |
Taskurai.Models.StateGetOptions | options | Taskurai.Models.StateGetOptions. |
Azure.Storage.Blobs.Models.BlobDownloadOptions | downloadOptions | Azure.Storage.Blobs.Models.BlobDownloadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
GetBlobStateContentAsync(string, string, StateGetOptions, BlobDownloadOptions, CancellationToken)
Download content of a blob for a state and get a blob state entry.
Required scope: Taskurai.State.Read
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<StateDownloadResponse> GetBlobStateContentAsync(string storeName, string id, StateGetOptions options = null, BlobDownloadOptions downloadOptions = null, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Taskurai.Models.StateDownloadResponse>
: Taskurai.Models.StateDownloadResponse
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
System.String | id | State ID. |
Taskurai.Models.StateGetOptions | options | Taskurai.Models.StateGetOptions. |
Azure.Storage.Blobs.Models.BlobDownloadOptions | downloadOptions | Azure.Storage.Blobs.Models.BlobDownloadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
DownloadBlobTo(StateResponse, string, BlobDownloadToOptions, CancellationToken)
Download a blob for a state (created with hasBlob = true).
public virtual Response DownloadBlobTo(StateResponse stateResponse, string filePath, BlobDownloadToOptions options = null, CancellationToken cancellationToken = default)
Returns
Azure.Response
: Azure.Response
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.String | filePath | File path to write download content to. |
Azure.Storage.Blobs.Models.BlobDownloadToOptions | options | Azure.Storage.Blobs.Models.BlobDownloadToOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
DownloadBlobToAsync(StateResponse, string, BlobDownloadToOptions, CancellationToken)
Download a blob for a state (created with hasBlob = true).
public virtual Task<Response> DownloadBlobToAsync(StateResponse stateResponse, string filePath, BlobDownloadToOptions options = null, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Azure.Response>
: Azure.Response
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.String | filePath | File path to write download content to. |
Azure.Storage.Blobs.Models.BlobDownloadToOptions | options | Azure.Storage.Blobs.Models.BlobDownloadToOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
DownloadBlobTo(StateResponse, Stream, BlobDownloadToOptions, CancellationToken)
Download a blob for a state (created with hasBlob = true).
public virtual Response DownloadBlobTo(StateResponse stateResponse, Stream destination, BlobDownloadToOptions options = null, CancellationToken cancellationToken = default)
Returns
Azure.Response
: Azure.Response
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.IO.Stream | destination | Stream to write download content to. |
Azure.Storage.Blobs.Models.BlobDownloadToOptions | options | Azure.Storage.Blobs.Models.BlobDownloadToOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
DownloadBlobToAsync(StateResponse, Stream, BlobDownloadToOptions, CancellationToken)
Download a blob for a state (created with hasBlob = true).
public virtual Task<Response> DownloadBlobToAsync(StateResponse stateResponse, Stream destination, BlobDownloadToOptions options = null, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Azure.Response>
: Azure.Response
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
System.IO.Stream | destination | Stream to write download content to. |
Azure.Storage.Blobs.Models.BlobDownloadToOptions | options | Azure.Storage.Blobs.Models.BlobDownloadToOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
DownloadBlobContent(StateResponse, BlobDownloadOptions, CancellationToken)
Download content of a blob for a state (created with hasBlob = true).
public virtual Response<BlobDownloadResult> DownloadBlobContent(StateResponse stateResponse, BlobDownloadOptions options = null, CancellationToken cancellationToken = default)
Returns
Azure.Response<Azure.Storage.Blobs.Models.BlobDownloadResult>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
Azure.Storage.Blobs.Models.BlobDownloadOptions | options | Azure.Storage.Blobs.Models.BlobDownloadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
DownloadBlobContentAsync(StateResponse, BlobDownloadOptions, CancellationToken)
Download content of a blob for a state (created with hasBlob = true).
public virtual Task<Response<BlobDownloadResult>> DownloadBlobContentAsync(StateResponse stateResponse, BlobDownloadOptions options = null, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.Models.BlobDownloadResult>>
: Azure.Response%601
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Models.StateResponse | stateResponse | Taskurai.Models.StateResponse |
Azure.Storage.Blobs.Models.BlobDownloadOptions | options | Azure.Storage.Blobs.Models.BlobDownloadOptions |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
GetBulkState(string, StateGetBulkInput, CancellationToken)
Get bulk state.
Required scope: Taskurai.State.Read
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual IEnumerable<StateResponse> GetBulkState(string storeName, StateGetBulkInput input = null, CancellationToken cancellationToken = default)
Returns
System.Collections.Generic.IEnumerable<Taskurai.Models.StateResponse>
: System.Collections.Generic.IEnumerable%601
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateGetBulkInput | input | Taskurai.Models.StateGetBulkInput. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
GetBulkStateAsync(string, StateGetBulkInput, CancellationToken)
Get bulk state.
Required scope: Taskurai.State.Read
.
Optional scope to return sensitive data: Taskurai.Sensitive.Read
.
public virtual Task<IEnumerable<StateResponse>> GetBulkStateAsync(string storeName, StateGetBulkInput input = null, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Taskurai.Models.StateResponse>>
: System.Collections.Generic.IEnumerable%601
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
Taskurai.Models.StateGetBulkInput | input | Taskurai.Models.StateGetBulkInput. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
DeleteState(string, string, StateDeleteOptions, CancellationToken)
Delete a state entry.
Required scope: Taskurai.State.Delete
.
public virtual void DeleteState(string storeName, string id, StateDeleteOptions options = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
System.String | id | State ID |
Taskurai.Models.StateDeleteOptions | options | Taskurai.Models.StateDeleteOptions. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.
DeleteStateAsync(string, string, StateDeleteOptions, CancellationToken)
Delete a state entry.
Required scope: Taskurai.State.Delete
.
public virtual Task DeleteStateAsync(string storeName, string id, StateDeleteOptions options = null, CancellationToken cancellationToken = default)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name | Description |
---|---|---|
System.String | storeName | State store name. |
System.String | id | State ID |
Taskurai.Models.StateDeleteOptions | options | Taskurai.Models.StateDeleteOptions. |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken |
Exceptions
Azure.RequestFailedException
Throws if request fails.