Table of Contents

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

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

instance object

The activated artifact instance.

artifactType Type

The Type of the artifact.

logger ILogger<ActivatedArtifact>

The ILogger for logging.

Properties

Instance

Gets the activated artifact instance.

public object Instance { get; }

Property Value

object

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.