Skip to content

Conversation

@yanniboi
Copy link
Collaborator

No description provided.

private static ServiceBusProcessor _processor;

private const string QueueName = "error";

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we have several different error queues I though we might benefit from a global variable to switch which queue we are processing.

Copy link
Owner

@gallaca gallaca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left a few comments. I think your changes all represent an improvement but would suggest that a few small additional changes make it even better!

@@ -1,4 +1,6 @@
namespace MessageBusReader
using MessageBusReader.QueueProcessingHandlers;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opinions vary on whether usings should be inside or outside of the namespace. However, please don't do both in the same class.

private static ServiceBusProcessor _processor;

// Customise your operational params.
private const string QueueName = "error";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we call this new variable errorQueueName please?


// Customise your operational params.
private const string QueueName = "error";
private const string Env = "DEV_CONNECTION_STRING";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect a variable called Env to have values "dev", "qa" and "prod". We are conflating the environment with the only value (at present) that changes by environment. I think we can do this better?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants