-
Notifications
You must be signed in to change notification settings - Fork 1
By yanniboi: Added error replay for HubSpot Academy validation errors. #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| private static ServiceBusProcessor _processor; | ||
|
|
||
| private const string QueueName = "error"; | ||
|
|
There was a problem hiding this comment.
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.
gallaca
left a comment
There was a problem hiding this 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; | |||
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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?
No description provided.