Skip to content

Commit ee31145

Browse files
committed
removed the sqs
1 parent 25e73a4 commit ee31145

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/Helper/BusRegistrationConfiguratorExt.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,6 @@ public static void SetupTransport(this IBusRegistrationConfigurator x, string[]
1010

1111
switch (selectedTransport)
1212
{
13-
case "AmazonSQS":
14-
var awsRegion = Environment.GetEnvironmentVariable("AWS_REGION");
15-
var awsClientId = Environment.GetEnvironmentVariable("AWS_ACCESS_KEY_ID");
16-
var awsSecret = Environment.GetEnvironmentVariable("AWS_SECRET_ACCESS_KEY");
17-
envFile = Path.GetFullPath("../../../sqs.env");
18-
if (File.Exists(envFile))
19-
{
20-
var envs = DotEnv.Read(new DotEnvOptions(envFilePaths: [envFile]));
21-
awsRegion = envs["AWS_REGION"];
22-
awsClientId = envs["AWS_ACCESS_KEY_ID"];
23-
awsSecret = envs["AWS_SECRET_ACCESS_KEY"];
24-
}
25-
26-
x.UsingAmazonSqs((ctx, cfg) =>
27-
{
28-
cfg.Host(awsRegion, h =>
29-
{
30-
h.AccessKey(awsClientId);
31-
h.SecretKey(awsSecret);
32-
});
33-
34-
cfg.ConfigureEndpoints(ctx);
35-
});
36-
break;
3713
case "AzureServiceBus":
3814
var connectionString = Environment.GetEnvironmentVariable("CONNECTION_STRING");
3915
envFile = Path.GetFullPath("../../../asb.env");

0 commit comments

Comments
 (0)