Skip to content

[Compilation Error] Blob Storage function to Service Bus output binding #134

Description

@lbrecheisen

Using a blob function with an output binding to service bus, I'm receiving the following error:

Error compiling function: BlobFnTest.cs(48,37): error CS0103
The name 'pluginFunctions' does not exist in the current context

I'm utilizing the MediatR implementation.

The following code should reproduce the error.

Command:

    public class TestCommand : IRequest<string>, IStreamCommand
    {
        public Stream Stream { get; set; } = Stream.Null;
        public string? Name { get; set; }
    }

Handler:

    internal class TestHandler : IRequestHandler<TestCommand, string>
    {
        public Task<string> Handle(TestCommand command, CancellationToken ct)
        {
            return Task.FromResult("test");
        }
    }

Configuration:

    .Storage(builder => builder
        .BlobFunction<TestCommand>("test-container/{name}")
            .OutputTo.ServiceBusTopic("test-topic"))

Packages Extensions:

    <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.ServiceBus" Version="4.0.0" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="3.0.10" />

Function Monkey Version: 4.0.56-beta.4
Dotnet Version: 3.1
Azure Function Core Tools Version: 3.0.2106
Editor: VSCode
OS: Mac

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions