Table of Contents

Class Permissions.All

Namespace
Invex.StructuredText.GithubActions.GithubActionModel
Assembly
Invex.StructuredText.GithubActions.dll

Grants the same Level to every permission scope, rendered as read-all or write-all.

public sealed record Permissions.All : Permissions
Inheritance
object
Permissions.All

Constructors

All(PermissionsLevel)

Grants the same Level to every permission scope, rendered as read-all or write-all.

public All(PermissionsLevel Level)

Parameters

Level PermissionsLevel

The level to grant across all scopes.

Properties

Level

The level to grant across all scopes.

public PermissionsLevel Level { get; init; }

Property Value

PermissionsLevel

Methods

Match(Action<All>, Action<Exact>)

public override void Match(Action<Permissions.All> all, Action<Permissions.Exact> exact)

Parameters

all Action<Permissions.All>
exact Action<Permissions.Exact>

MatchAll(Action<All>, Action)

public override void MatchAll(Action<Permissions.All> all, Action @else)

Parameters

all Action<Permissions.All>
else Action

MatchAll<TMatchOutput>(Func<All, TMatchOutput>, Func<TMatchOutput>)

public override TMatchOutput MatchAll<TMatchOutput>(Func<Permissions.All, TMatchOutput> all, Func<TMatchOutput> @else)

Parameters

all Func<Permissions.All, TMatchOutput>
else Func<TMatchOutput>

Returns

TMatchOutput

Type Parameters

TMatchOutput

MatchAll<TState>(TState, Action<TState, All>, Action<TState>)

public override void MatchAll<TState>(TState state, Action<TState, Permissions.All> all, Action<TState> @else)

Parameters

state TState
all Action<TState, Permissions.All>
else Action<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, Permissions.All, TMatchOutput> all, Func<TState, TMatchOutput> @else)

Parameters

state TState
all Func<TState, Permissions.All, TMatchOutput>
else Func<TState, TMatchOutput>

Returns

TMatchOutput

Type Parameters

TState
TMatchOutput

MatchExact(Action<Exact>, Action)

public override void MatchExact(Action<Permissions.Exact> exact, Action @else)

Parameters

exact Action<Permissions.Exact>
else Action

MatchExact<TMatchOutput>(Func<Exact, TMatchOutput>, Func<TMatchOutput>)

public override TMatchOutput MatchExact<TMatchOutput>(Func<Permissions.Exact, TMatchOutput> exact, Func<TMatchOutput> @else)

Parameters

exact Func<Permissions.Exact, TMatchOutput>
else Func<TMatchOutput>

Returns

TMatchOutput

Type Parameters

TMatchOutput

MatchExact<TState>(TState, Action<TState, Exact>, Action<TState>)

public override void MatchExact<TState>(TState state, Action<TState, Permissions.Exact> exact, Action<TState> @else)

Parameters

state TState
exact Action<TState, Permissions.Exact>
else Action<TState>

Type Parameters

TState

MatchExact<TState, TMatchOutput>(TState, Func<TState, Exact, TMatchOutput>, Func<TState, TMatchOutput>)

public override TMatchOutput MatchExact<TState, TMatchOutput>(TState state, Func<TState, Permissions.Exact, TMatchOutput> exact, Func<TState, TMatchOutput> @else)

Parameters

state TState
exact Func<TState, Permissions.Exact, TMatchOutput>
else Func<TState, TMatchOutput>

Returns

TMatchOutput

Type Parameters

TState
TMatchOutput

Match<TMatchOutput>(Func<All, TMatchOutput>, Func<Exact, TMatchOutput>)

public override TMatchOutput Match<TMatchOutput>(Func<Permissions.All, TMatchOutput> all, Func<Permissions.Exact, TMatchOutput> exact)

Parameters

all Func<Permissions.All, TMatchOutput>
exact Func<Permissions.Exact, TMatchOutput>

Returns

TMatchOutput

Type Parameters

TMatchOutput

Match<TState>(TState, Action<TState, All>, Action<TState, Exact>)

public override void Match<TState>(TState state, Action<TState, Permissions.All> all, Action<TState, Permissions.Exact> exact)

Parameters

state TState
all Action<TState, Permissions.All>
exact Action<TState, Permissions.Exact>

Type Parameters

TState

Match<TState, TMatchOutput>(TState, Func<TState, All, TMatchOutput>, Func<TState, Exact, TMatchOutput>)

public override TMatchOutput Match<TState, TMatchOutput>(TState state, Func<TState, Permissions.All, TMatchOutput> all, Func<TState, Permissions.Exact, TMatchOutput> exact)

Parameters

state TState
all Func<TState, Permissions.All, TMatchOutput>
exact Func<TState, Permissions.Exact, TMatchOutput>

Returns

TMatchOutput

Type Parameters

TState
TMatchOutput

UnwrapAll()

public override Permissions.All UnwrapAll()

Returns

Permissions.All

UnwrapExact()

public override Permissions.Exact UnwrapExact()

Returns

Permissions.Exact