public NamespaceManager CreateNamespaceManager() { NamespaceManager namespaceManager; IEnumerable <Uri> endpointAddresses = KeyValueConfigurationManager.GetEndpointAddresses(this.connectionProperties["Endpoint"], this.connectionProperties["ManagementPort"]); string str1 = this.connectionProperties["SharedAccessKeyName"]; string item2 = this.connectionProperties["SharedAccessKey"]; SharedAccessSignatureTokenProvider tokenProvider = new SharedAccessSignatureTokenProvider(str1, item2, SharedAccessSignatureTokenProvider.DefaultTokenTimeout); namespaceManager = new NamespaceManager(endpointAddresses, tokenProvider); return(namespaceManager); }
public static IList <Uri> GetEndpointAddresses(string uriEndpoints, string portString) { return(KeyValueConfigurationManager.GetEndpointAddresses(uriEndpoints, string.Empty, portString)); }