Class DependabotRegistries.Named
- Namespace
- Invex.StructuredText.GithubActions.DependabotConfigModel.Model
- Assembly
- Invex.StructuredText.GithubActions.dll
Uses only the named registries, written as a registries array.
public sealed record DependabotRegistries.Named : DependabotRegistries
- Inheritance
-
objectDependabotRegistries.Named
Constructors
Named(params IReadOnlyList<string>)
Uses only the named registries, written as a registries array.
public Named(params IReadOnlyList<string> Names)
Parameters
NamesIReadOnlyList<string>The names of registries defined in Registries.
Properties
Names
The names of registries defined in Registries.
public IReadOnlyList<string> Names { get; init; }
Property Value
- IReadOnlyList<string>
Methods
Match(Action<All>, Action<Named>)
public override void Match(Action<DependabotRegistries.All> all, Action<DependabotRegistries.Named> named)
Parameters
allAction<DependabotRegistries.All>namedAction<DependabotRegistries.Named>
MatchAll(Action<All>, Action)
public override void MatchAll(Action<DependabotRegistries.All> all, Action @else)
Parameters
allAction<DependabotRegistries.All>elseAction
MatchAll<TMatchOutput>(Func<All, TMatchOutput>, Func<TMatchOutput>)
public override TMatchOutput MatchAll<TMatchOutput>(Func<DependabotRegistries.All, TMatchOutput> all, Func<TMatchOutput> @else)
Parameters
allFunc<DependabotRegistries.All, TMatchOutput>elseFunc<TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TMatchOutput
MatchAll<TState>(TState, Action<TState, All>, Action<TState>)
public override void MatchAll<TState>(TState state, Action<TState, DependabotRegistries.All> all, Action<TState> @else)
Parameters
stateTStateallAction<TState, DependabotRegistries.All>elseAction<TState>
Type Parameters
TState
MatchAll<TState, TMatchOutput>(TState, Func<TState, All, TMatchOutput>, Func<TState, TMatchOutput>)
public override TMatchOutput MatchAll<TState, TMatchOutput>(TState state, Func<TState, DependabotRegistries.All, TMatchOutput> all, Func<TState, TMatchOutput> @else)
Parameters
stateTStateallFunc<TState, DependabotRegistries.All, TMatchOutput>elseFunc<TState, TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TStateTMatchOutput
MatchNamed(Action<Named>, Action)
public override void MatchNamed(Action<DependabotRegistries.Named> named, Action @else)
Parameters
namedAction<DependabotRegistries.Named>elseAction
MatchNamed<TMatchOutput>(Func<Named, TMatchOutput>, Func<TMatchOutput>)
public override TMatchOutput MatchNamed<TMatchOutput>(Func<DependabotRegistries.Named, TMatchOutput> named, Func<TMatchOutput> @else)
Parameters
namedFunc<DependabotRegistries.Named, TMatchOutput>elseFunc<TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TMatchOutput
MatchNamed<TState>(TState, Action<TState, Named>, Action<TState>)
public override void MatchNamed<TState>(TState state, Action<TState, DependabotRegistries.Named> named, Action<TState> @else)
Parameters
stateTStatenamedAction<TState, DependabotRegistries.Named>elseAction<TState>
Type Parameters
TState
MatchNamed<TState, TMatchOutput>(TState, Func<TState, Named, TMatchOutput>, Func<TState, TMatchOutput>)
public override TMatchOutput MatchNamed<TState, TMatchOutput>(TState state, Func<TState, DependabotRegistries.Named, TMatchOutput> named, Func<TState, TMatchOutput> @else)
Parameters
stateTStatenamedFunc<TState, DependabotRegistries.Named, TMatchOutput>elseFunc<TState, TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TStateTMatchOutput
Match<TMatchOutput>(Func<All, TMatchOutput>, Func<Named, TMatchOutput>)
public override TMatchOutput Match<TMatchOutput>(Func<DependabotRegistries.All, TMatchOutput> all, Func<DependabotRegistries.Named, TMatchOutput> named)
Parameters
allFunc<DependabotRegistries.All, TMatchOutput>namedFunc<DependabotRegistries.Named, TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TMatchOutput
Match<TState>(TState, Action<TState, All>, Action<TState, Named>)
public override void Match<TState>(TState state, Action<TState, DependabotRegistries.All> all, Action<TState, DependabotRegistries.Named> named)
Parameters
stateTStateallAction<TState, DependabotRegistries.All>namedAction<TState, DependabotRegistries.Named>
Type Parameters
TState
Match<TState, TMatchOutput>(TState, Func<TState, All, TMatchOutput>, Func<TState, Named, TMatchOutput>)
public override TMatchOutput Match<TState, TMatchOutput>(TState state, Func<TState, DependabotRegistries.All, TMatchOutput> all, Func<TState, DependabotRegistries.Named, TMatchOutput> named)
Parameters
stateTStateallFunc<TState, DependabotRegistries.All, TMatchOutput>namedFunc<TState, DependabotRegistries.Named, TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TStateTMatchOutput
UnwrapAll()
public override DependabotRegistries.All UnwrapAll()
Returns
UnwrapNamed()
public override DependabotRegistries.Named UnwrapNamed()