Beispiel #1
0
        public Task <UploadSingleObjectWithFilesAsFormDataResult> ExecuteAsync(UploadSingleObjectWithFilesAsFormDataParameters parameters, CancellationToken cancellationToken = default)
        {
            if (parameters is null)
            {
                throw new System.ArgumentNullException(nameof(parameters));
            }

            return(InvokeExecuteAsync(parameters, cancellationToken));
        }
        public Task <ActionResult> UploadSingleObjectWithFilesAsFormDataAsync(UploadSingleObjectWithFilesAsFormDataParameters parameters, [FromServices] IUploadSingleObjectWithFilesAsFormDataHandler handler, CancellationToken cancellationToken)
        {
            if (handler is null)
            {
                throw new ArgumentNullException(nameof(handler));
            }

            return(InvokeUploadSingleObjectWithFilesAsFormDataAsync(parameters, handler, cancellationToken));
        }
Beispiel #3
0
 public Task <UploadSingleObjectWithFilesAsFormDataResult> ExecuteAsync(UploadSingleObjectWithFilesAsFormDataParameters parameters, CancellationToken cancellationToken = default)
 {
     return(Task.FromResult(UploadSingleObjectWithFilesAsFormDataResult.Ok("Hallo world")));
 }
Beispiel #4
0
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
        private async Task <UploadSingleObjectWithFilesAsFormDataResult> InvokeExecuteAsync(UploadSingleObjectWithFilesAsFormDataParameters parameters, CancellationToken cancellationToken)
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
        {
            throw new System.NotImplementedException();
        }
 private static async Task <ActionResult> InvokeUploadSingleObjectWithFilesAsFormDataAsync(UploadSingleObjectWithFilesAsFormDataParameters parameters, IUploadSingleObjectWithFilesAsFormDataHandler handler, CancellationToken cancellationToken)
 {
     return(await handler.ExecuteAsync(parameters, cancellationToken));
 }