Compartilhar via


FunctionsWorkerHost.RunDefault(Action<IServiceCollection>) Método

Definição

Cria uma Azure Functions host configurado pelo Worker, executa e bloqueia o thread de chamada até que o host seja desligado.

public static void RunDefault (Action<Microsoft.Extensions.DependencyInjection.IServiceCollection>? configureServices = default);
static member RunDefault : Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> unit
Public Shared Sub RunDefault (Optional configureServices As Action(Of IServiceCollection) = Nothing)

Parâmetros

configureServices
Action<IServiceCollection>

Um delegado opcional para configurar serviços de host.

Aplica-se a