tgstation-server 6.19.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
RequestExecutorBuilderExtensions.cs
Go to the documentation of this file.
1using System;
2
6
8
15
17{
22 {
30 {
33 })
34#if DEBUG
36 {
38 })
39#endif
41 .AddInMemorySubscriptions(
43 {
44 TopicBufferCapacity = 1024, // mainly so high for tests, not possible to DoS the server without authentication and some other access to generate messages
45 })
47 .AddQueryFieldToMutationPayloads()
48 .ModifyOptions(options =>
49 {
51 })
53 {
58 })
60 .AddSorting()
61 .AddProjections()
62 .AddHostTypes()
63 .AddAuthorization()
64 .ConfigureTypes();
65
71 => builder
72 .AddQueryType<Query>()
74 .AddSubscriptionType<Subscription>()
76 .AddType<LocalGateway>()
78 .AddType<UnsignedIntType>()
80 .BindRuntimeType<Version, SemverType>()
82
96 }
97}
static IEnumerable< Type > AllRightTypes()
Iterate the Type of each right.
Base Controller for API functions.
const ushort MaximumPageSize
Maximum size of Paginated<TModel> results.
const ushort DefaultPageSize
Default size of Paginated<TModel> results.
static void AddRightsHolders(this IRequestExecutorBuilder builder)
Configure RightsHolderType<TRight>s for all RightsTypes.
static void ConfigureTypes(this IRequestExecutorBuilder builder)
Configure active Types for a given builder .
static void ConfigureGraphQLServer(this IRequestExecutorBuilder builder)
Configure a GraphQL pipeline builder .
ObjectType<T> for RightsHolder<TRight>s to give the flags proper GraphQL semantics.
GraphQL query global::System.Type.
Definition Query.cs:12
A ScalarType<TRuntimeType, TLiteral> for semantic Versions.
Definition SemverType.cs:13
Root type for GraphQL subscriptions.
IGateway for the SwarmNode this query is executing on.
@ List
User may list files if the Models.Instance allows it.