AskNumberOptions<T>
Options for AskNumberAsync<T>(IReplInteractionChannel, string, string, T?, AskNumberOptions<T>?).
- Kind:
Class - Namespace: Repl.Interaction
- Assembly:
Repl.Core - Source: src/Repl.Core/Interaction/AskNumberOptions.cs
Signature
Section titled “Signature”public record AskNumberOptions<T> : IEquatable<AskNumberOptions<T>> where T : structType Parameters
Section titled “Type Parameters”T: The numeric type.
Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<AskNumberOptions<T>>
Constructors
Section titled “Constructors”AskNumberOptions(TimeSpan?, T?, T?, CancellationToken)
Section titled “AskNumberOptions(TimeSpan?, T?, T?, CancellationToken)”Options for AskNumberAsync<T>(IReplInteractionChannel, string, string, T?, AskNumberOptions<T>?).
public AskNumberOptions(TimeSpan? Timeout = null, T? Min = null, T? Max = null, CancellationToken CancellationToken = default)Parameters
Section titled “Parameters”Timeout(TimeSpan?): Optional timeout for the prompt.Min(T?): Optional minimum bound (inclusive).Max(T?): Optional maximum bound (inclusive).CancellationToken(CancellationToken): Explicit cancellation token. Whendefault, the channel uses the ambient per-command token set by the framework before each command dispatch.
Properties
Section titled “Properties”CancellationToken
Section titled “CancellationToken”Explicit cancellation token. When default, the channel uses the
ambient per-command token set by the framework before each command dispatch.
public CancellationToken CancellationToken { get; init; }Returns
Section titled “Returns”Optional maximum bound (inclusive).
public T? Max { get; init; }Returns
Section titled “Returns”T?
Optional minimum bound (inclusive).
public T? Min { get; init; }Returns
Section titled “Returns”T?
Timeout
Section titled “Timeout”Optional timeout for the prompt.
public TimeSpan? Timeout { get; init; }Returns
Section titled “Returns”TimeSpan?