public class WorkflowQueue<T> : IDisposable
Public Class WorkflowQueue(Of T) Implements IDisposable
generic<typename T> public ref class WorkflowQueue : IDisposable
type WorkflowQueue<'T> = class interface IDisposable end
Thetype exposes the following members.
Returns the maximum number of items allowed in the queue at any given moment. This may not be set to a value less than 2.
Closes the queue.
Attempts to dequeue an item from the queue with an optional timeout.
Closes the queue if it's not already closed.
Releases all associated resources.
Adds an item to the queue.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
Attempts to add an item to the queue. Unlike EnqueueAsync(T), this method does not block when the queue is full and returns false instead.
You can construct workflow queue instances in your workflows via NewQueueAsyncT(Int32), optionally specifying the maximum capacity of the queue. This defaults to DefaultCapacity and may not be less that 2 queued items.
Items are added to the queue via EnqueueAsync(T). This method will return immediately when the number of items currently in the queue is less than the capacity, otherwise the operation will block until an item has been dequeued and the queue is no longer full.
|Serialized item sizes must be less than 64 KiB.|
Use DequeueAsync(TimeSpan) to read from the queue using an optional timeout.
Theclass is intended only for two scenarios within an executing workflow: