ICommandLineConventionContext Interface

Summary

ICommandLineConventionContext Implements the IConventionContext
graph BT Type-.->Interface0["IConventionContext"] click Interface0 "/api/Rocket.Surgery.Conventions/IConventionContext" Type["ICommandLineConventionContext"] class Type type-node Implementing0["CommandLineBuilder"]-.->Type click Implementing0 "/api/Rocket.Surgery.Extensions.CommandLine/CommandLineBuilder"

Syntax

public interface ICommandLineConventionContext : IConventionContext

Attributes

Type Description
NullableContextAttribute

Properties

Name Value Summary
AssemblyCandidateFinder IAssemblyCandidateFinder
Gets the assembly candidate finder.
AssemblyProvider IAssemblyProvider
Gets the assembly provider.
CommandLineApplicationConventions IConventionBuilder
Gets the command line application conventions.

Methods

Extension Methods

Name Value Summary
Get<T>(string) T
Get a value by key from the context
Get<T>() T
Get a value by type from the context
GetOrAdd<T>(Func<T>) T
Get a value by key from the context
GetOrAdd<T>(string, Func<T>) T
Get a value by key from the context
IsUnitTestHost() bool
Check if this is a test host (to allow conventions to behave differently during unit tests)
Set<T>(string, T) void
Get a value by type from the context
Set<T>(T) void
Get a value by type from the context
SetBackingValue<ICommandLineConventionContext, TV>(Expression<Func<ICommandLineConventionContext, TV>>, TV) T
Sets the backing value.
With<ICommandLineConventionContext, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.

See Also