public override void Start(string name)
        {
            if (_bus != null)
                throw new Exception("Bus already started");

            _logger.Info("Starting service bus, enpoint name " + name);
            _logger.Info("Service bus type: azure");

            var credentials = new Credentials(ConfigurationManager.AppSettings["azure:serviceBusIssuerName"],
                ConfigurationManager.AppSettings["azure:serviceBusIssuerKey"], 
                ConfigurationManager.AppSettings["azure:serviceBusNamespace"], 
                name);

            _bus = ServiceBusFactory.New(sbc =>
            {
                sbc.UseNLog();
                sbc.UseJsonSerializer();

                var uri = credentials.BuildUri(name);

                sbc.ReceiveFrom(uri);

                sbc.Subscribe(c =>
                {
                    if (BusHasHandlers)
                    {
                        c.Handler<DomainUpdateBusMessage>(HandleDomainUpdate);
                    }
                });

                sbc.UseAzureServiceBus(x =>
                {
                    x.ConfigureNamespace(uri.Host, h =>
                    {
                        h.SetKeyName(ConfigurationManager.AppSettings["azure:serviceBusIssuerName"]);
                        h.SetKey(ConfigurationManager.AppSettings["azure:serviceBusIssuerKey"]);
                    });
                });
                sbc.UseAzureServiceBusRouting();
            });
        }
		public void creds()
		{
			subject = new Credentials("owner", "key", "ns", "appx");
		}
 public void Setup()
 {
     _subject = new Credentials("owner", "key", "ns", "appx");
 }