Skip to content

Conversation

@DeonHeyns
Copy link
Contributor

@DeonHeyns DeonHeyns commented Jul 4, 2018

  • Updated servicestack.azure.core.nuspec to use Microsoft.Azure.ServiceBus and dropped icrosoft.Azure.Management.ServiceBus
  • Added a prefetch property to ServiceBusMqMessageFactory (removed, there is a separate PR for this)
  • Added ctor to ServiceBusMqServer that accepts ServiceBusMqMessageFactory which allows prefetch to be configured
  • Microsoft.Azure.ServiceBus library now includes management api that allows queues to be created from a connectionstring

All MQ tests run and pass (except for ignored test)

#if NETSTANDARD2_0
try
{
managementClient.QueueExistsAsync(queueName)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mythz wouldn't mind some guidance on how you'd like to see this part done. All management apis are async so went this route for now

Copy link
Member

Choose a reason for hiding this comment

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

The async method would normally be propagated back to the public API which would return a Task Response. But if you want to keep the different implementations the same as the sync API you would block and call .Wait() and .Result however this opens the chance of a deadlock.

To best mitigate the changes, ideally registering queue's would only be done at registration for all the registered queue's when the MQ is started.

@DeonHeyns DeonHeyns changed the title Use new Azure ServiceBus library that can create queues Don’t merge:Use new Azure ServiceBus library that can create queues Jul 4, 2018
@DeonHeyns DeonHeyns changed the title Don’t merge:Use new Azure ServiceBus library that can create queues Use new Azure ServiceBus library that can create queues Jul 4, 2018
#if !NETSTANDARD2_0
protected internal readonly NamespaceManager namespaceManager;
#endif
#if NETSTANDARD2_0
Copy link
Member

Choose a reason for hiding this comment

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

use #else instead of repeating the negative condition

@DeonHeyns
Copy link
Contributor Author

DeonHeyns commented Jul 5, 2018 via email

@DeonHeyns
Copy link
Contributor Author

DeonHeyns commented Jul 5, 2018 via email

@mythz
Copy link
Member

mythz commented Jul 5, 2018

@DeonHeyns
Copy link
Contributor Author

I’ve neglected this due to work commitments and found an issue that I’ll need to spend time resolving. So closing for now and will send a new PR.

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.

2 participants