Class ActivatedArtifact
Represents a wrapper around an activated artifact instance that handles disposal.
public class ActivatedArtifact : IAsyncDisposable
- Inheritance
-
ActivatedArtifact
- Implements
- Derived
- Inherited Members
Constructors
ActivatedArtifact(object, Type, ILogger<ActivatedArtifact>)
Represents a wrapper around an activated artifact instance that handles disposal.
public ActivatedArtifact(object instance, Type artifactType, ILogger<ActivatedArtifact> logger)
Parameters
instanceobjectThe activated artifact instance.
artifactTypeTypeThe Type of the artifact.
loggerILogger<ActivatedArtifact>The ILogger for logging.
Properties
Instance
Gets the activated artifact instance.
public object Instance { get; }
Property Value
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.