tgstation-server
6.19.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
GraphQL
Types
RightsHolder{TRight}.cs
Go to the documentation of this file.
1
using
System;
2
3
namespace
Tgstation.Server.Host.GraphQL.Types
4
{
9
public
sealed
class
RightsHolder
<TRight>
10
where TRight : struct, Enum
11
{
15
public
bool
HasContextFlag
16
{
17
get
=>
throw
new
InvalidOperationException($
"{nameof(HasContextFlag)} getter should not be called!"
);
18
set
=>
throw
new
InvalidOperationException($
"{nameof(HasContextFlag)} setter should not be called!"
);
19
}
20
24
public
required TRight
Right
{
get
; init; }
25
}
26
}
Tgstation.Server.Host.GraphQL.Types.RightsHolder
Holder for a given TRight .
Definition
RightsHolder{TRight}.cs:11
Tgstation.Server.Host.GraphQL.Types.RightsHolder.HasContextFlag
bool HasContextFlag
Marker property to allow Right to be properly selected by the GraphQL system. Should not be used for ...
Definition
RightsHolder{TRight}.cs:16
Tgstation.Server.Host.GraphQL.Types.RightsHolder.Right
required TRight Right
The held TRight value.
Definition
RightsHolder{TRight}.cs:24
Tgstation.Server.Host.GraphQL.Types
Definition
ChatBot.cs:9
Generated by
1.9.8