Class ActivatedArtifact
- Namespace
- Cratis.Chronicle
- Assembly
- Cratis.Chronicle.dll
Represents a wrapper around an activated artifact instance that handles disposal.
public class ActivatedArtifact : IAsyncDisposable
- Inheritance
-
ActivatedArtifact
- Implements
- Derived
- Inherited Members
- Extension Methods
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()
public ValueTask DisposeAsync()