Esempio n. 1
0
        internal async Task <string> PerformSubmissionAsync(ISubmission submission)
        {
            var address     = $"{submission.Entity}/?client={submission.Client}";
            var method      = submission.Method;
            var contentType = submission.ContentType;
            var body        = submission.RequestBody;
            var msg         = await Query.ApplyDelayAsync(() => this.PerformRequestAsync(address, method, "application/json", contentType, body));

            return(Query.ExtractMessage(msg) ?? "");
        }
Esempio n. 2
0
 internal async Task <string> PerformSubmissionAsync(ISubmission submission)
 {
     return(Query.ExtractMessage(await Query.ApplyDelayAsync(() => this.PerformRequestAsync($"{submission.Entity}/?client={submission.Client}", submission.Method, "application/json", submission.ContentType, submission.RequestBody))));
 }
Esempio n. 3
0
 internal string PerformSubmission(ISubmission submission)
 {
     return(Query.ExtractMessage(Query.ApplyDelay(() => this.PerformRequest($"{submission.Entity}/?client={submission.Client}", submission.Method, "application/json", submission.ContentType, submission.RequestBody))));
 }