# Yarn.Saliency Namespace

## Summary

Contains classes for choosing the most relevant content out of a set of possible options.

## Classes

| Name                                                                                                                                                               | Description                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [BestLeastRecentlyViewedSaliencyStrategy](https://docs.yarnspinner.dev/api/csharp/yarn.saliency/yarn.saliency.bestleastrecentlyviewedsaliencystrategy)             | A content saliency strategy that returns the first of the best, least-recently seen choices from the provided options.                                                              |
| [BestSaliencyStrategy](https://docs.yarnspinner.dev/api/csharp/yarn.saliency/yarn.saliency.bestsaliencystrategy)                                                   | A content saliency strategy that returns the best of the provided options.                                                                                                          |
| [ContentSaliencyOption](https://docs.yarnspinner.dev/api/csharp/yarn.saliency/yarn.saliency.contentsaliencyoption)                                                 | Represents a piece of content that may be selected by an [IContentSaliencyStrategy](https://docs.yarnspinner.dev/api/csharp/yarn.saliency/yarn.saliency.icontentsaliencystrategy) . |
| [EnumerableRandomExtension](https://docs.yarnspinner.dev/api/csharp/yarn.saliency/yarn.saliency.enumerablerandomextension)                                         | Contains extension methods for ``System.Collections.Generic.IEnumerable`1`` .                                                                                                       |
| [FirstSaliencyStrategy](https://docs.yarnspinner.dev/api/csharp/yarn.saliency/yarn.saliency.firstsaliencystrategy)                                                 | A content saliency strategy that always returns the first non-failing item in the list of available options.                                                                        |
| [RandomBestLeastRecentlyViewedSaliencyStrategy](https://docs.yarnspinner.dev/api/csharp/yarn.saliency/yarn.saliency.randombestleastrecentlyviewedsaliencystrategy) | A content saliency strategy that returns a random choice of the best, least-recently seen choices from the provided options.                                                        |

## Enums

| Name                                                                                                                         | Description                                                                                                                                                     |
| ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ContentSaliencyContentType](https://docs.yarnspinner.dev/api/csharp/yarn.saliency/yarn.saliency.contentsaliencycontenttype) | Indicates what type of content a [ContentSaliencyOption](https://docs.yarnspinner.dev/api/csharp/yarn.saliency/yarn.saliency.contentsaliencyoption) represents. |

## Interfaces

| Name                                                                                                                     | Description                                                                    |
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
| [IContentSaliencyStrategy](https://docs.yarnspinner.dev/api/csharp/yarn.saliency/yarn.saliency.icontentsaliencystrategy) | Contains methods for choosing a piece of content from a collection of options. |
