The following use of named parameters when invoking AddApplicationInsights should be allowed by AV1555
builder.Services.AddLogging(loggingBuilder =>
{
if (!string.IsNullOrWhiteSpace(connectionString))
{
// Enable logging to the Application Insights service.
loggingBuilder.AddApplicationInsights(
configureTelemetryConfiguration: config => config.ConnectionString = connectionString,
configureApplicationInsightsLoggerOptions: options => { }
);
}
});
Whether that external library is a package build by the same developer isn't relevant.
See also discussion bkoelman/CSharpGuidelinesAnalyzer#145