Show / Hide Table of Contents

    Class TaskQueue

    Task queue to encapsulate chaining of tasks.

    Inheritance
    Object
    Disposable
    ObjectRootDisposable
    TaskQueue
    Implements
    IDisposable
    Inherited Members
    ObjectRootDisposable.GraphLogger
    Disposable.Dispose()
    Disposable.IsDisposed
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.Graph.Communications.Common
    Assembly: Microsoft.Graph.Communications.Common.dll
    Syntax
    public class TaskQueue : ObjectRootDisposable, IDisposable

    Constructors

    TaskQueue(IGraphLogger, Task)

    Initializes a new instance of the TaskQueue class.

    Declaration
    public TaskQueue(IGraphLogger logger, Task antecedent = null)
    Parameters
    Type Name Description
    IGraphLogger logger

    Logger instance.

    Task antecedent

    Optional antecedent task.

    Methods

    Dispose(Boolean)

    Protected implementation of dispose. This will be triggered only once regardless if manually disposed or garbage collected.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    Overrides
    Disposable.Dispose(Boolean)

    EnqueueAsync(Func<Task, Task>)

    Enqueue an operation

    Declaration
    public Task EnqueueAsync(Func<Task, Task> operation)
    Parameters
    Type Name Description
    Func<Task, Task> operation

    Operation to queue.

    Returns
    Type Description
    Task

    A task that represents the queued operation.

    Implements

    System.IDisposable

    Extension Methods

    AdditionalDataExtensions.SetInAdditionalData(Object, String, Object)
    Extensions.Pin(Object)
    Extensions.ChangeType(Object, Type)
    Extensions.ChangeType<T>(Object)
    Extensions.TryDispose(Object, IGraphLogger)
    ReflectionUtils.GetPropertyUsingReflection(Object, String)
    ReflectionUtils.SetPropertyUsingReflection(Object, String, Object)
    Validator.IsNull(Object, String, String)
    Validator.NotNull<T>(T, String, String)
    Validator.Equals<T>(T, T, String, String)
    Validator.Equals<T, TE>(T, T, String)
    Validator.NotEquals<T>(T, T, String, String)
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.