Azure / azure-functions-templates

Azure functions templates for the azure portal, CLI, and VS
MIT License
340 stars 193 forks source link

Bug - there is a piece of C# code in F# template #1514

Open kumkee opened 3 months ago

kumkee commented 3 months ago

In the F# project template, there is a C# lambda function in this F# code, making it fail to compile.

let host =
        HostBuilder()
            .ConfigureFunctionsWorkerDefaults()
            .ConfigureServices(services => {
                services.AddApplicationInsightsTelemetryWorkerService();
                services.ConfigureFunctionsApplicationInsights();
            })
            .Build()

In addition, this dot-method calling is not an F# style at all.

Could someone familiar with both languages please fix these?