Class AutoClean<T>
Helper class to automatically cleanup but with associated state.
Implements
Inherited Members
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 |