Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Service bus paired namespace failover testing

$
0
0

Hi,

We are implementing paired namespace in our application to increase service bus availability and we want to test this configuration. I am not able to simulate service bus fail over to test paired namespace configuration, please suggest if there is any way to simulate service bus fail over.

I am using following code to configure paired namespace

NamespaceManager primaryNM = NamespaceManager.CreateFromConnectionString("...");
MessagingFactory primaryMF = ...
NamespaceManager secondaryNM= NamespaceManager.CreateFromConnectionString("...");
MessagingFactory secondaryMF = ...
SendAvailabilityPairedNamespaceOptions sao=
    new SendAvailabilityPairedNamespaceOptions(secondaryNamespaceManager, secondaryMF, 10, TimeSpan.FromSeconds(30), true);
primaryMF.PairNamespaceAsync(sao).Wait();

Thanks,

Nitesh Bajpai



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>