Table of Contents

Class DefaultMessageFeatures

Namespace
Excalibur.Dispatch
Assembly
Excalibur.Dispatch.Abstractions.dll

Default in-memory implementation of IMessageFeatures that avoids any ASP.NET dependencies.

public sealed class DefaultMessageFeatures : IMessageFeatures
Inheritance
DefaultMessageFeatures
Implements
Inherited Members
Extension Methods

Methods

GetFeature<TFeature>()

Gets a feature instance of type TFeature if present; otherwise null.

public TFeature? GetFeature<TFeature>() where TFeature : class

Returns

TFeature

The feature instance or null if not present.

Type Parameters

TFeature

Feature contract type.

SetFeature<TFeature>(TFeature?)

Sets a feature instance for type TFeature.

public void SetFeature<TFeature>(TFeature? instance) where TFeature : class

Parameters

instance TFeature

Instance to associate; null removes the feature.

Type Parameters

TFeature

Feature contract type.