コード例 #1
0
 public GitHubApiRateLimits ToGitHubApiRateLimits()
 {
     return(new GitHubApiRateLimits(RestApi?.ToRateLimitStatus() ?? throw new NullReferenceException(),
                                    SearchApi?.ToRateLimitStatus() ?? throw new NullReferenceException(),
                                    GraphQLApi?.ToRateLimitStatus() ?? throw new NullReferenceException(),
                                    SourceImport?.ToRateLimitStatus() ?? throw new NullReferenceException(),
                                    AppManifestConfiguration?.ToRateLimitStatus() ?? throw new NullReferenceException(),
                                    CodeScanningUpload?.ToRateLimitStatus() ?? throw new NullReferenceException()));
 }
コード例 #2
0
 internal FacadeStack(Construct scope, string id, IStackProps props = null) : base(scope, id, props)
 {
     var api = new GraphQLApi(this, "Api", new GraphQLApiProps
     {
         Name      = "DemoApi",
         LogConfig = new LogConfig
         {
             FieldLogLevel = FieldLogLevel.ALL
         },
         SchemaDefinitionFile = "./schema.graphql"
     });
 }