Skip to main content

Class TaskuraiStateClient

A TaskuraiStateClient provides access to the Taskurai State api.

Assembly: Taskurai.dll
Declaration
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.

Declaration
public virtual StateResponse SaveState(string storeName, StateInput input, CancellationToken cancellationToken = default)
Returns

Taskurai.Models.StateResponse: Taskurai.Models.StateResponse

Parameters
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
public virtual Task<StateResponse> SaveStateAsync(string storeName, StateInput input, CancellationToken cancellationToken = default)
Returns

System.Threading.Tasks.Task<Taskurai.Models.StateResponse>: Taskurai.Models.StateResponse

Parameters
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
public virtual StateResponse SaveBlobState(string storeName, StateInput input, string filePath, bool overwrite = false, CancellationToken cancellationToken = default)
Returns

Taskurai.Models.StateResponse: Taskurai.Models.StateResponse

Parameters
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.StringfilePathFile path containing the content to upload
System.BooleanoverwriteShould existings blobs be overwritten. Default is false.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.StringfilePathFile path containing the content to upload
System.BooleanoverwriteShould existings blobs be overwritten. Default is false.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
public virtual StateResponse SaveBlobState(string storeName, StateInput input, string filePath, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns

Taskurai.Models.StateResponse: Taskurai.Models.StateResponse

Parameters
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.StringfilePathFile path containing the content to upload
Azure.Storage.Blobs.Models.BlobUploadOptionsoptionsUpload options. Azure.Storage.Blobs.Models.BlobUploadOptions
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.StringfilePathFile path containing the content to upload
Azure.Storage.Blobs.Models.BlobUploadOptionsoptionsUpload options. Azure.Storage.Blobs.Models.BlobUploadOptions
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
public virtual StateResponse SaveBlobState(string storeName, StateInput input, Stream content, bool overwrite = false, CancellationToken cancellationToken = default)
Returns

Taskurai.Models.StateResponse: Taskurai.Models.StateResponse

Parameters
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.IO.StreamcontentA System.IO.Stream containing the content to upload.
System.BooleanoverwriteShould existings blobs be overwritten. Default is false.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.IO.StreamcontentA System.IO.Stream containing the content to upload.
System.BooleanoverwriteShould existings blobs be overwritten. Default is false.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
public virtual StateResponse SaveBlobState(string storeName, StateInput input, Stream content, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns

Taskurai.Models.StateResponse: Taskurai.Models.StateResponse

Parameters
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.IO.StreamcontentA System.IO.Stream containing the content to upload.
Azure.Storage.Blobs.Models.BlobUploadOptionsoptionsUpload options. Azure.Storage.Blobs.Models.BlobUploadOptions
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.IO.StreamcontentA System.IO.Stream containing the content to upload.
Azure.Storage.Blobs.Models.BlobUploadOptionsoptionsUpload options. Azure.Storage.Blobs.Models.BlobUploadOptions
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
public virtual StateResponse SaveBlobState(string storeName, StateInput input, BinaryData data, bool overwrite = false, CancellationToken cancellationToken = default)
Returns

Taskurai.Models.StateResponse: Taskurai.Models.StateResponse

Parameters
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.BinaryDatadataA System.BinaryData containing the content to upload.
System.BooleanoverwriteShould existings blobs be overwritten. Default is false.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.BinaryDatadataA System.BinaryData containing the content to upload.
System.BooleanoverwriteShould existings blobs be overwritten. Default is false.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
public virtual StateResponse SaveBlobState(string storeName, StateInput input, BinaryData data, BlobUploadOptions options, CancellationToken cancellationToken = default)
Returns

Taskurai.Models.StateResponse: Taskurai.Models.StateResponse

Parameters
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.BinaryDatadataA System.BinaryData containing the content to upload.
Azure.Storage.Blobs.Models.BlobUploadOptionsoptionsUpload options. Azure.Storage.Blobs.Models.BlobUploadOptions
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateInputinputTaskurai.Models.StateInput.
System.BinaryDatadataA System.BinaryData containing the content to upload.
Azure.Storage.Blobs.Models.BlobUploadOptionsoptionsUpload options. Azure.Storage.Blobs.Models.BlobUploadOptions
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

UploadBlob(StateResponse, string, bool, CancellationToken)

Upload blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.StringfilePathFile path containing the content to upload
System.BooleanoverwriteShould existings blobs be overwritten. Default is false.
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

UploadBlob(StateResponse, string, BlobUploadOptions, CancellationToken)

Upload blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.StringfilePathFile path containing the content to upload
Azure.Storage.Blobs.Models.BlobUploadOptionsoptionsUpload options. Azure.Storage.Blobs.Models.BlobUploadOptions
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

UploadBlobAsync(StateResponse, string, bool, CancellationToken)

Upload blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.StringfilePathFile path containing the content to upload
System.BooleanoverwriteShould existings blobs be overwritten. Default is false.
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

UploadBlobAsync(StateResponse, string, BlobUploadOptions, CancellationToken)

Upload blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.StringfilePathFile path containing the content to upload
Azure.Storage.Blobs.Models.BlobUploadOptionsoptionsUpload options. Azure.Storage.Blobs.Models.BlobUploadOptions
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

UploadBlob(StateResponse, Stream, bool, CancellationToken)

Upload blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.IO.StreamcontentA System.IO.Stream containing the content to upload.
System.BooleanoverwriteShould existings blobs be overwritten. Default is false.
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

UploadBlob(StateResponse, Stream, BlobUploadOptions, CancellationToken)

Upload blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.IO.StreamcontentA System.IO.Stream containing the content to upload.
Azure.Storage.Blobs.Models.BlobUploadOptionsoptionsUpload options. Azure.Storage.Blobs.Models.BlobUploadOptions
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

UploadBlobAsync(StateResponse, Stream, bool, CancellationToken)

Upload blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.IO.StreamcontentA System.IO.Stream containing the content to upload.
System.BooleanoverwriteShould existings blobs be overwritten. Default is false.
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

UploadBlobAsync(StateResponse, Stream, BlobUploadOptions, CancellationToken)

Upload blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.IO.StreamcontentA System.IO.Stream containing the content to upload.
Azure.Storage.Blobs.Models.BlobUploadOptionsoptionsUpload options. Azure.Storage.Blobs.Models.BlobUploadOptions
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

UploadBlob(StateResponse, BinaryData, bool, CancellationToken)

Upload blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.BinaryDatacontentA System.BinaryData containing the content to upload.
System.BooleanoverwriteShould existings blobs be overwritten. Default is false.
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

UploadBlob(StateResponse, BinaryData, BlobUploadOptions, CancellationToken)

Upload blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.BinaryDatacontentA System.BinaryData containing the content to upload.
Azure.Storage.Blobs.Models.BlobUploadOptionsoptionsUpload options. Azure.Storage.Blobs.Models.BlobUploadOptions
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

UploadBlobAsync(StateResponse, BinaryData, bool, CancellationToken)

Upload blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.BinaryDatacontentA System.BinaryData containing the content to upload.
System.BooleanoverwriteShould existings blobs be overwritten. Default is false.
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

UploadBlobAsync(StateResponse, BinaryData, BlobUploadOptions, CancellationToken)

Upload blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.BinaryDatacontentA System.BinaryData containing the content to upload.
Azure.Storage.Blobs.Models.BlobUploadOptionsoptionsUpload options. Azure.Storage.Blobs.Models.BlobUploadOptions
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateBulkInputinputTaskurai.Models.StateBulkInput.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateBulkInputinputTaskurai.Models.StateBulkInput.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateBulkTransactionInputinputTaskurai.Models.StateBulkTransactionInput.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateBulkTransactionInputinputTaskurai.Models.StateBulkTransactionInput.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateListInputinputTaskurai.Models.StateListInput.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateListInputinputTaskurai.Models.StateListInput.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
public virtual StateResponse GetState(string storeName, string id, StateGetOptions options = null, CancellationToken cancellationToken = default)
Returns

Taskurai.Models.StateResponse: Taskurai.Models.StateResponse

Parameters
TypeNameDescription
System.StringstoreNameState store name.
System.StringidState ID.
Taskurai.Models.StateGetOptionsoptionsTaskurai.Models.StateGetOptions.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
System.StringidState ID.
Taskurai.Models.StateGetOptionsoptionsTaskurai.Models.StateGetOptions.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
System.StringidState ID.
System.StringfilePathFile path to write download content to.
Taskurai.Models.StateGetOptionsoptionsTaskurai.Models.StateGetOptions.
Azure.Storage.Blobs.Models.BlobDownloadToOptionsdownloadOptionsAzure.Storage.Blobs.Models.BlobDownloadToOptions
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
System.StringidState ID.
System.StringfilePathFile path to write download content to.
Taskurai.Models.StateGetOptionsoptionsTaskurai.Models.StateGetOptions.
Azure.Storage.Blobs.Models.BlobDownloadToOptionsdownloadOptionsAzure.Storage.Blobs.Models.BlobDownloadToOptions
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
System.StringidState ID.
Taskurai.Models.StateGetOptionsoptionsTaskurai.Models.StateGetOptions.
Azure.Storage.Blobs.Models.BlobDownloadOptionsdownloadOptionsAzure.Storage.Blobs.Models.BlobDownloadOptions
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
System.StringidState ID.
Taskurai.Models.StateGetOptionsoptionsTaskurai.Models.StateGetOptions.
Azure.Storage.Blobs.Models.BlobDownloadOptionsdownloadOptionsAzure.Storage.Blobs.Models.BlobDownloadOptions
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

DownloadBlobTo(StateResponse, string, BlobDownloadToOptions, CancellationToken)

Download a blob for a state (created with hasBlob = true).

Declaration
public virtual Response DownloadBlobTo(StateResponse stateResponse, string filePath, BlobDownloadToOptions options = null, CancellationToken cancellationToken = default)
Returns

Azure.Response: Azure.Response

Parameters
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.StringfilePathFile path to write download content to.
Azure.Storage.Blobs.Models.BlobDownloadToOptionsoptionsAzure.Storage.Blobs.Models.BlobDownloadToOptions
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

DownloadBlobToAsync(StateResponse, string, BlobDownloadToOptions, CancellationToken)

Download a blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.StringfilePathFile path to write download content to.
Azure.Storage.Blobs.Models.BlobDownloadToOptionsoptionsAzure.Storage.Blobs.Models.BlobDownloadToOptions
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

DownloadBlobTo(StateResponse, Stream, BlobDownloadToOptions, CancellationToken)

Download a blob for a state (created with hasBlob = true).

Declaration
public virtual Response DownloadBlobTo(StateResponse stateResponse, Stream destination, BlobDownloadToOptions options = null, CancellationToken cancellationToken = default)
Returns

Azure.Response: Azure.Response

Parameters
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.IO.StreamdestinationStream to write download content to.
Azure.Storage.Blobs.Models.BlobDownloadToOptionsoptionsAzure.Storage.Blobs.Models.BlobDownloadToOptions
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

DownloadBlobToAsync(StateResponse, Stream, BlobDownloadToOptions, CancellationToken)

Download a blob for a state (created with hasBlob = true).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
System.IO.StreamdestinationStream to write download content to.
Azure.Storage.Blobs.Models.BlobDownloadToOptionsoptionsAzure.Storage.Blobs.Models.BlobDownloadToOptions
System.Threading.CancellationTokencancellationTokenSystem.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).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
Azure.Storage.Blobs.Models.BlobDownloadOptionsoptionsAzure.Storage.Blobs.Models.BlobDownloadOptions
System.Threading.CancellationTokencancellationTokenSystem.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).

Declaration
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
TypeNameDescription
Taskurai.Models.StateResponsestateResponseTaskurai.Models.StateResponse
Azure.Storage.Blobs.Models.BlobDownloadOptionsoptionsAzure.Storage.Blobs.Models.BlobDownloadOptions
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateGetBulkInputinputTaskurai.Models.StateGetBulkInput.
System.Threading.CancellationTokencancellationTokenSystem.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.

Declaration
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
TypeNameDescription
System.StringstoreNameState store name.
Taskurai.Models.StateGetBulkInputinputTaskurai.Models.StateGetBulkInput.
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

DeleteState(string, string, StateDeleteOptions, CancellationToken)

Delete a state entry.

Required scope: Taskurai.State.Delete.

Declaration
public virtual void DeleteState(string storeName, string id, StateDeleteOptions options = null, CancellationToken cancellationToken = default)
Parameters
TypeNameDescription
System.StringstoreNameState store name.
System.StringidState ID
Taskurai.Models.StateDeleteOptionsoptionsTaskurai.Models.StateDeleteOptions.
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.

DeleteStateAsync(string, string, StateDeleteOptions, CancellationToken)

Delete a state entry.

Required scope: Taskurai.State.Delete.

Declaration
public virtual Task DeleteStateAsync(string storeName, string id, StateDeleteOptions options = null, CancellationToken cancellationToken = default)
Returns

System.Threading.Tasks.Task

Parameters
TypeNameDescription
System.StringstoreNameState store name.
System.StringidState ID
Taskurai.Models.StateDeleteOptionsoptionsTaskurai.Models.StateDeleteOptions.
System.Threading.CancellationTokencancellationTokenSystem.Threading.CancellationToken
Exceptions

Azure.RequestFailedException
Throws if request fails.