This package provides RPC capabilities to the WebJobs SDK, allowing extensions to communicate between the host and worker via RPC. For more information, please visit https://go.microsoft.com/fwlink/?linkid=2279708.
$ dotnet add package Microsoft.Azure.WebJobs.Extensions.RpcThis package provides RPC capabilities to the WebJobs SDK, allowing extensions to communicate between the host and worker via RPC. For more information, please visit https://go.microsoft.com/fwlink/?linkid=2279708.
WebJobsExtensionBuilderRpcExtensionsThe below example demonstrates how an extension can register a custom gRPC extension.
public static IWebJobsBuilder AddMyExtension(this IWebJobsBuilder builder, Action<MyExtensionOptions> configure)
{
builder.AddExtension<MyExtensionConfigProvider>()
.MapWorkerGrpcService<MyGrpcService>();
builder.Services.AddSingleton<MyGrpcService>();
return builder;
}