Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions src/BuslyCLI.Console/Factories/RawEndpointFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,18 @@ private static async Task<TransportInfrastructure> InternalCreateInfrastructure(
},
isReceiveEnabled);


var infrastructure = await transport.Initialize(hostSettings, new[]
{
new ReceiveSettings(
"Primary",
new QueueAddress(endpointName),
isReceiveEnabled,
false,
"error")
}, new string[0]);
var infrastructure = await transport.Initialize(hostSettings,
isReceiveEnabled
?
[
new ReceiveSettings(
"Primary",
new QueueAddress(endpointName),
isReceiveEnabled,
false,
"error")
]
: [], []);


return infrastructure;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ private static async Task<TestEndpoint> InternalCreateTestEndpoint(string endpoi
// TODO: This needs to be false for "Azure Service Bus Emulator" tests to pass
transport is not AzureServiceBusTransport);

var infrastructure = await transport.Initialize(hostSettings, new[]
{
var infrastructure = await transport.Initialize(hostSettings, [
new ReceiveSettings(
"Primary",
new QueueAddress(endpointName),
true,
false,
"error")
}, new string[0]);
], []);


return new TestEndpoint(infrastructure);
}
Expand Down