Skip to content

Commit 8053078

Browse files
committed
Check args for different transport type
1 parent a833581 commit 8053078

File tree

5 files changed

+2
-33
lines changed

5 files changed

+2
-33
lines changed

src/Billing/Properties/launchSettings.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@
1515
"environmentVariables": {
1616
"ASPNETCORE_ENVIRONMENT": "Development"
1717
}
18-
},
19-
"AmazonSQS": {
20-
"commandName": "Project",
21-
"commandLineArgs": "--amazonsqs",
22-
"launchBrowser": false,
23-
"environmentVariables": {
24-
"ASPNETCORE_ENVIRONMENT": "Development"
25-
}
2618
}
2719
}
2820
}

src/ClientUI/Properties/launchSettings.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@
1515
"environmentVariables": {
1616
"ASPNETCORE_ENVIRONMENT": "Development"
1717
}
18-
},
19-
"AmazonSQS": {
20-
"commandName": "Project",
21-
"commandLineArgs": "--amazonsqs",
22-
"launchBrowser": false,
23-
"environmentVariables": {
24-
"ASPNETCORE_ENVIRONMENT": "Development"
25-
}
2618
}
2719
}
2820
}

src/Helper/BusRegistrationConfiguratorExt.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ public static class BusRegistrationConfiguratorExt
55
{
66
public static void SetupTransport(this IBusRegistrationConfigurator x, string[] args)
77
{
8-
var selectedTransport = Environment.GetEnvironmentVariable("TRANSPORT_TYPE") ?? "RabbitMQ";
8+
var selectedTransport = Environment.GetEnvironmentVariable("TRANSPORT_TYPE") ?? (args.Contains("--azureservicebus") ? "AzureServiceBus" : "RabbitMQ");
9+
910
string envFile;
1011

1112
switch (selectedTransport)

src/Sales/Properties/launchSettings.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@
1515
"environmentVariables": {
1616
"ASPNETCORE_ENVIRONMENT": "Development"
1717
}
18-
},
19-
"AmazonSQS": {
20-
"commandName": "Project",
21-
"commandLineArgs": "--amazonsqs",
22-
"launchBrowser": false,
23-
"environmentVariables": {
24-
"ASPNETCORE_ENVIRONMENT": "Development"
25-
}
2618
}
2719
}
2820
}

src/Shipping/Properties/launchSettings.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@
1515
"environmentVariables": {
1616
"ASPNETCORE_ENVIRONMENT": "Development"
1717
}
18-
},
19-
"AmazonSQS": {
20-
"commandName": "Project",
21-
"commandLineArgs": "--amazonsqs",
22-
"launchBrowser": false,
23-
"environmentVariables": {
24-
"ASPNETCORE_ENVIRONMENT": "Development"
25-
}
2618
}
2719
}
2820
}

0 commit comments

Comments
 (0)