Skip to content
Discussion options

You must be logged in to vote

http:

 private readonly HttpClient _httpClient;
    public ExcelController(IHttpClientFactory httpClientFactory)
    {
        _httpClient = httpClientFactory.CreateClient(Consts.GraphqlClient);
    }
    public async Task<ActionResult> ExportByGraphqlQuery(ExportByGraphqlQueryOptions options)
    {

#if DEBUG
        options.GraphQLQuery = @"  customer {    createdUtc
    custNum    dateeeee    datetimesssssss    displayText    guimo    modifiedUtc    name    publishedUtc    timeeeeeeeeeee  }";
#endif

        _httpClient.BaseAddress = new Uri($"{Request.Scheme}://{Request.Host}");
        _httpClient.DefaultRequestHeaders.Clear();
        if (!string.IsNullOrEmpty(Request.Headers["Cookie"]

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@lampersky
Comment options

@hyzx86
Comment options

@lampersky
Comment options

@hyzx86
Comment options

Answer selected by hyzx86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants