Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/327.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在xamarin中未实现AmazonAppSyncClient()构造函数异常_C#_Amazon Web Services_Xamarin_Graphql_Aws Appsync - Fatal编程技术网

C# 在xamarin中未实现AmazonAppSyncClient()构造函数异常

C# 在xamarin中未实现AmazonAppSyncClient()构造函数异常,c#,amazon-web-services,xamarin,graphql,aws-appsync,C#,Amazon Web Services,Xamarin,Graphql,Aws Appsync,我想在xamarin中使用AWS AppSync 这是我使用的代码(使用graphQL),如下所述: 但我得到了AmazonAppSyncClient()构造函数未实现的异常 public GraphQLService() { credentials = new CognitoAWSCredentials("Identity-pool-ID", // Identity pool ID Region

我想在xamarin中使用AWS AppSync

这是我使用的代码(使用graphQL),如下所述:

但我得到了AmazonAppSyncClient()构造函数未实现的异常

    public GraphQLService()
    {
            credentials = new CognitoAWSCredentials("Identity-pool-ID", // Identity pool ID
                             RegionEndpoint.USWest2 // Region
                             );
            graphQLClient = new GraphQLClient("https://6vl6q5h2c5bxrbmlimiia5hldy.appsync-api.us-west-2.amazonaws.com/graphql",
                 new GraphQLClientOptions
                 {
                     HttpMessageHandler = new AWS4SignerMessageHandler(
                                               new AmazonAppSyncClient(),
                                               "AKIAIPYMG6M3MLZELEKA",
                                               "tW4NrTvfT5bX8DGI2GusiNWHtWB+9s918uq9QMWp")
                 });

    }
有什么解决办法吗


谢谢。

这听起来好像不支持AmazonAppSyncClient。这么说来,考虑到它的GraphQL,您可以使用任何HTTP客户端访问AppSync API。看起来您可以通过更改AWS4SignerMessageHandler和AmazonHttpRequestSigning的实现来解决此问题,从而使其不依赖于AmazonServiceClient。看看你的要点,看起来你使用它的唯一原因是,我认为你可以自己构建一个谷歌搜索引擎,这让我想到了这些