/// <inheritdoc cref="SendHttpRequest(IActivityBuilder, Func{ActivityExecutionContext, Uri?}, Func{ActivityExecutionContext, string?}, Func{ActivityExecutionContext, string?}, Func{ActivityExecutionContext, string?}, Func{ActivityExecutionContext, string?}, Func{ActivityExecutionContext, HttpRequestHeaders}, Func{ActivityExecutionContext, bool}, Func{ActivityExecutionContext, ICollection{int}}, Action{IActivityBuilder}?, int, string?)"/> public static IActivityBuilder SendHttpRequest( this IActivityBuilder builder, Uri?url, string?method, string?content, string?contentType, string?authorization, HttpRequestHeaders requestHeaders, bool readContent, ICollection <int> supportedStatusCodes, Action <IActivityBuilder>?activity = default, [CallerLineNumber] int lineNumber = default, [CallerFilePath] string?sourceFile = default) => builder.SendHttpRequest( setup => setup .Set(x => x.Url, url) .Set(x => x.Method, method) .Set(x => x.Content, content) .Set(x => x.ContentType, contentType) .Set(x => x.Authorization, authorization) .Set(x => x.RequestHeaders, requestHeaders) .Set(x => x.ReadContent, readContent) .Set(x => x.SupportedStatusCodes, supportedStatusCodes), activity, lineNumber, sourceFile);
public static IActivityBuilder SendHttpRequest(this IActivityBuilder builder, Func <Uri?> url, Func <string?> method, Func <string?> content, Func <string?> contentType, Func <string?> authorization, Func <HttpRequestHeaders> requestHeaders, Func <bool> readContent, Func <ICollection <int> > supportedStatusCodes, [CallerLineNumber] int lineNumber = default, [CallerFilePath] string?sourceFile = default) => builder.SendHttpRequest( setup => setup .Set(x => x.Url, url) .Set(x => x.Method, method) .Set(x => x.Content, content) .Set(x => x.ContentType, contentType) .Set(x => x.Authorization, authorization) .Set(x => x.RequestHeaders, requestHeaders) .Set(x => x.ReadContent, readContent) .Set(x => x.SupportedStatusCodes, supportedStatusCodes), lineNumber, sourceFile);