Geeks With Blogs

News




ThreadAbortException my experiments with //Web

Once you upgrade to the Windows Azure SDK 1.6 you also get the updated Microsoft Service Bus assemblies (version 1.6.0.0) that you can use for working with Windows Azure Service Bus (yeah, no longer AppFabric Service Bus)

One of the standard implementations of Service Bus is  to use the CredentialType, Credentials (the service bus namespace and the issuer key and issuer name) to create the service bus namespace URI.

Once you upgrade to Windows Azure Service Bus (Microsoft.ServiceBus) version 1.6.0.0, the following are the errors you might encounter.  These are rather warnings.

'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete

'Microsoft.ServiceBus.TransportClientEndpointBehavior.CredentialType' is obsolete: '"This property is deprecated. Please use TransportClientEndpointBehavior.TokenProvider instead."'

'Microsoft.ServiceBus.TransportClientEndpointBehavior.Credentials' is obsolete: '"This property is deprecated. Please use TransportClientEndpointBehavior.TokenProvider instead."'

'Microsoft.ServiceBus.TransportClientEndpointBehavior.Credentials' is obsolete: '"This property is deprecated. Please use TransportClientEndpointBehavior.TokenProvider instead."'

While this is nicely documented in the release notes, the new equivalent for this is Token Provider.  So here below is a sample implementation code which uses Token Provider and TransportClientEndPointBehaviour namespaces.

Uri serviceUri = ServiceBusEnvironment.CreateServiceUri("sb", serviceNamespace, "SERVICE NAME”);

// create the credentials object for the endpoint

TransportClientEndpointBehavior sharedSecretServiceBusCredential = new TransportClientEndpointBehavior();

TokenProvider tokenProvider = tokenProvider.CreateSharedSecretTokenProvider(issuerName, issuerSecret);

sharedSecretServiceBusCredential.TokenProvider = tokenProvider;

// create the channel factory loading the configuration

ChannelFactory<IDirectoryService> channelFactory = new ChannelFactory<IDirectoryService>("DirectoryEndpoint", new EndpointAddress(serviceUri));

channelFactory.Endpoint.Behaviors.Add(sharedSecretServiceBusCredential);

Cheers!!!

Posted on Tuesday, January 10, 2012 10:51 PM Windows Azure | Back to top


Comments on this post: 'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete

# re: 'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete
Requesting Gravatar...
this is real! wow i not think is obsolete.Windows Azure Service Bus work perfect at the moment for me.

regards.
Left by maquinas de coser on Mar 20, 2012 4:43 PM

# re: 'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete
Requesting Gravatar...
Great posting thank you!
Left by FJ on Mar 21, 2012 9:08 PM

# re: 'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete
Requesting Gravatar...
This is nice update. Thank you for posting it here. Indeed, I made an upgrade when I found this post. pmp boot camp hartford
Left by Kristin Williams on Apr 20, 2012 5:31 PM

# re: 'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete
Requesting Gravatar...
wayanad resorts is the ultimate destination to wind up and relax.
Left by resorts in wayanad on Jul 07, 2012 10:07 AM

# w3w
Requesting Gravatar...
The concept has been developed in analogy to the bus concept found in computer hardware architecture combined with the modular and concurrent design of high-performance computer operating systems. -
Review Solution
Left by rush katokwa on Jan 29, 2015 10:25 PM

# re: 'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete
Requesting Gravatar...
I was wondering what is really on this picture, good things that it is discuss below the picture. Now I know what is the painting all about. Thanks for sharing.
Top BBA College in Delhi ncr
BBA placement in Delhi ncr
Left by renuka on Sep 01, 2015 3:55 PM

# re: 'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete
Requesting Gravatar...
Maharishi Markandeshwar University, Mullana - Ambala, erstwhile known as Maharishi Markandeshwar Education Trust was founded with the objective of social, educational and economic upliftment of society in the year 1993, in the name of Lord Shiva's devotee, "Maharishi Markandeshwar Ji.
Best University in haryana
BCA College in Haryana
Left by ram15 on Sep 02, 2015 4:50 PM

# re: 'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete
Requesting Gravatar...
Microsoft.ServiceBus.TransportClientCredentialType' is obsolete
Left by carolchristensen123 on Sep 29, 2015 2:09 PM

# re: 'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete
Requesting Gravatar...
This is nice update. Thank you for posting it here. Indeed, I made an upgrade when I found this post.social games
Left by Dan Bass on Dec 11, 2015 2:48 PM

# re: 'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete
Requesting Gravatar...
Past few weeks I had also used to receive such error messages coming on my screen with obsolete warnings, with my new computer. So I had to send it back to the manufactures and they had helped me with the genuine medical billing companies in new york software's which helped me to fix the issue.
Left by tammy philip on Jun 20, 2016 11:51 AM

Your comment:
 (will show your gravatar)


Copyright © Harish Ranganathan | Powered by: GeeksWithBlogs.net | Join free