Path: redb-route/redb.Route.AzureServiceBus/AzureServiceBusComponent.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.AzureServiceBus/AzureServiceBusComponent.cs
----
using redb.Route.Abstractions;
using redb.Route.Core;
namespace redb.Route.AzureServiceBus;
///
/// Azure Service Bus component. Scheme: asb.
///
/// URI format: asb://queue-name?connectionString=...
/// asb://topic-name?connectionString=...&subscriptionName=my-sub
///
///
public sealed class AzureServiceBusComponent : ComponentBase
{
///
public override string Scheme => "asb";
///
public override IEndpoint CreateEndpoint(EndpointUri uri)
{
ArgumentNullException.ThrowIfNull(uri);
var options = new AzureServiceBusEndpointOptions();
options.BindFromUri(uri.RawParameters);
options.Validate();
options.ResolveBatch(EndpointUri.Sanitize(uri.BaseKey));
return new AzureServiceBusEndpoint(uri, this, options);
}
}