Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Configure blob storage extension
Browse files Browse the repository at this point in the history
  • Loading branch information
EverybodyKurts committed Sep 15, 2023
1 parent 4aabe85 commit 4826575
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@ open Microsoft.Azure.Functions.Worker

[<EntryPoint>]
let main args =
let host =
HostBuilder()
.ConfigureFunctionsWorkerDefaults()
.Build()
let hostBuilder = new HostBuilder()

// If using the Cosmos, Blob or Tables extension, you will need configure the extensions manually using the extension methods below.
// Learn more about this here: https://go.microsoft.com/fwlink/?linkid=2245587
// ConfigureFunctionsWorkerDefaults(fun (context: HostBuilderContext) (appBuilder: IFunctionsWorkerApplicationBuilder) ->
// appBuilder.ConfigureCosmosDBExtension() |> ignore
// appBuilder.ConfigureBlobStorageExtension() |> ignore
// appBuilder.ConfigureTablesExtension() |> ignore
// ) |> ignore
hostBuilder.ConfigureFunctionsWorkerDefaults(fun (context: HostBuilderContext) (appBuilder: IFunctionsWorkerApplicationBuilder) ->
appBuilder.ConfigureBlobStorageExtension() |> ignore
) |> ignore

let host = hostBuilder.Build()

host.Run()

0

0 comments on commit 4826575

Please sign in to comment.