Using Azure Service Bus Shared Access Signature with NetMessagingBinding in WCF
• Jason M Penniman
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…
<transportClientEndpointBehavior> <tokenProvider> <sharedAccessSignature keyName="efudd" key="f9JFgRYdLdnPTQv4/EC5ixt4iHVUSTCnhOg1uep9lsW=" /> </tokenProvider> </transportClientEndpointBehavior>