Show / Hide Table of Contents

Interface IParameterManager

The parameter manager interface.

Inherited Members
IEnumerable<KeyValuePair<string, object>>.GetEnumerator()
IEnumerable.GetEnumerator()
IEquatable<IParameterManager>.Equals(IParameterManager)
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Abstractions.dll
Syntax
public interface IParameterManager : IEnumerable<KeyValuePair<string, object>>, IEnumerable, IEquatable<IParameterManager?>

Properties

View Source

Fallbacks

Gets a list of fallback parameter managers.

Declaration
IReadOnlyList<IParameterManager>? Fallbacks { get; }
Property Value
Type Description
IReadOnlyList<IParameterManager>
View Source

this[string]

Retrieves a parameter value by name, checking the fallbacks if the parameter is not defined in this manager.

Declaration
object? this[string parameterName] { get; set; }
Parameters
Type Name Description
string parameterName

The parameter name.

Property Value
Type Description
object

The parameter value.

View Source

OwnParameters

Gets a dictionary of parameters defined in this manager.

Declaration
IDictionary<string, object> OwnParameters { get; }
Property Value
Type Description
IDictionary<string, object>

Methods

View Source

ContainsKey(string)

Gets whether or not the parameter is defined in this manager or in its fallbacks.

Declaration
bool ContainsKey(string parameterName)
Parameters
Type Name Description
string parameterName

The parameter name.

Returns
Type Description
bool

True if the parameter was found.

View Source

RemoveOwnKey(string)

Removes the given parameter from this manager, while leaving fallbacks unchanged.

Declaration
void RemoveOwnKey(string parameterName)
Parameters
Type Name Description
string parameterName

The parameter name.

Extension Methods

IParameterManagerExtensions.Get<T>(IParameterManager, IEnumerable<string>, JsonSerializer?)
IParameterManagerExtensions.Get<T>(IParameterManager, string, JsonSerializer?)
IParameterManagerExtensions.TryGetValue(IParameterManager, string, out object?)
IParameterManagerExtensions.TryGet<T>(IParameterManager, IEnumerable<string>, out T, JsonSerializer?)
IParameterManagerExtensions.TryGet<T>(IParameterManager, string, out T, JsonSerializer?)
IEnumerableExtensions.WithoutLast<T>(IEnumerable<T>)
  • View Source
In this article
Back to top Generated by DocFX