public Task <ServiceResult <CreateWidgetResponseDto> > CreateWidgetAsync(CreateWidgetRequestDto request, CancellationToken cancellationToken = default) => TrySendRequestAsync(ConformanceApiHttpMapping.CreateWidgetMapping, request, cancellationToken);
/// <summary> /// Creates a new widget. /// </summary> public Task <ServiceResult <CreateWidgetResponseDto> > CreateWidgetAsync(CreateWidgetRequestDto request, CancellationToken cancellationToken) { return(TrySendRequestAsync(ExampleApiHttpMapping.CreateWidgetMapping, request, cancellationToken)); }
/// <inheritdoc /> public Task <ServiceResult <CreateWidgetResponseDto> > CreateWidgetAsync(CreateWidgetRequestDto request, CancellationToken cancellationToken = default) => Task.FromResult(Execute <CreateWidgetResponseDto>(request));