Class QueueItem
Class that stores the state of a binding queue request item
Inheritance
System.Object
QueueItem
Namespace:Microsoft.SqlTools.ServiceLayer.LanguageServices
Assembly:Microsoft.SqlTools.ServiceLayer.dll
Syntax
public class QueueItem
Constructors
| Improve this Doc View SourceQueueItem()
QueueItem constructor
Declaration
public QueueItem()
Properties
| Improve this Doc View SourceBindingTimeout
Gets or sets the binding operation timeout in milliseconds
Declaration
public int ? BindingTimeout { get; set; }
Type | Description |
---|---|
System.Nullable<System.Int32> |
BindOperation
Gets or sets the bind operation callback method
Declaration
public Func<IBindingContext, CancellationToken, object> BindOperation { get; set; }
Type | Description |
---|---|
System.Func<IBindingContext, System.Threading.CancellationToken, System.Object> |
ItemProcessed
Gets or sets an event to signal when this queue item has been processed
Declaration
public virtual ManualResetEvent ItemProcessed { get; set; }
Type | Description |
---|---|
System.Threading.ManualResetEvent |
Key
Gets or sets the queue item key
Declaration
public string Key { get; set; }
Type | Description |
---|---|
System.String |
Result
Gets or sets the result of the queued task
Declaration
public object Result { get; set; }
Type | Description |
---|---|
System.Object |
TimeoutOperation
Gets or sets the timeout operation to call if the bind operation doesn't finish within timeout period
Declaration
public Func<IBindingContext, object> TimeoutOperation { get; set; }
Type | Description |
---|---|
System.Func<IBindingContext, System.Object> |
WaitForLockTimeout
Gets or sets the timeout for how long to wait for the binding lock
Declaration
public int ? WaitForLockTimeout { get; set; }
Type | Description |
---|---|
System.Nullable<System.Int32> |
Methods
| Improve this Doc View SourceGetResultAsT<T>()
Converts the result of the execution to type T
Declaration
public T GetResultAsT<T>()where T : class
Returns
Type | Description |
---|---|
T |