AzureEventHubsExtensions.WithConfiguration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Alters the JSON configuration document used by the emulator.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource> WithConfiguration(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource> builder, Action<System.Text.Json.Nodes.JsonNode> configJson);
static member WithConfiguration : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource> * Action<System.Text.Json.Nodes.JsonNode> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource>
<Extension()>
Public Function WithConfiguration (builder As IResourceBuilder(Of AzureEventHubsEmulatorResource), configJson As Action(Of JsonNode)) As IResourceBuilder(Of AzureEventHubsEmulatorResource)
Parameters
The builder for the AzureEventHubsEmulatorResource.
A callback to update the JSON object representation of the configuration.
Returns
A reference to the IResourceBuilder<T>.