public AzureServiceBusClient() { // Set the buttons to enabled/disabled CanStart = true; CanStop = false; // Create a cancellationTokenSource which will be passed to the task _tokenSource = new CancellationTokenSource(); // Create a Queueclient that will connect to our // Service Bus item. var sb = QueueClient.CreateFromConnectionString(AzureServiceBusQueue.GetSenderConnectString()); _client = sb.MessagingFactory.CreateQueueClient("testqueue"); }