Using Azure Service Bus Shared Access Signature with NetMessagingBinding in WCF

I Googled, Binged, and scoured internet and various documentation and could not find this setting. I was able to reverse engineer the declarative markup based on the properties in the classes and code samples.

If you want to use the shared access signature authentication with the netMessagingBinding in WCF declaratively in your web.config or app.config, here’s how….

Given the service bus connection string….


The configuration for your transportClientEndpointBehavior looks like this…

    <sharedAccessSignature keyName="efudd" key="f9JFgRYdLdnPTQv4/EC5ixt4iHVUSTCnhOg1uep9lsW=" />

Happy Coding!


Questions, comments, concerns? Give us a Tweet!