Show / Hide Table of Contents

    Class AutoClean<T>

    Helper class to automatically cleanup but with associated state.

    Inheritance
    Object
    Disposable
    AutoClean
    AutoClean<T>
    Implements
    IDisposable
    Inherited Members
    AutoClean.Dispose(Boolean)
    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 AutoClean<T> : AutoClean, IDisposable
    Type Parameters
    Name Description
    T

    State type.

    Constructors

    AutoClean(T, Action)

    Initializes a new instance of the AutoClean<T> class.

    Declaration
    public AutoClean(T t, Action action)
    Parameters
    Type Name Description
    T t

    Instance of the custom data.

    Action action

    Cleanup action.

    Properties

    Data

    Gets the custom data.

    Declaration
    public T Data { get; }
    Property Value
    Type Description
    T

    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.