public static ItemsClient CreateItemsClient(this CommerceClients source, string serviceUrl)
 {
     var connectionString = serviceUrl;
     var subscriptionKey = ConfigurationManager.AppSettings["vc-marketplace-apikey"];
     var client = new ItemsClient(new Uri(connectionString), new AzureSubscriptionMessageProcessingHandler(subscriptionKey, "secret"));
     return client;
 }
Esempio n. 2
0
 public ContainerViewModel(ItemsClient itemsClient, ClientsClient clientsClient)
 {
     _itemsClient   = itemsClient;
     _clientsClient = clientsClient;
     Data           = new Data();
     GotoSearchPage();
 }
 public ContainerViewModel(ItemsClient itemsClient, ClientsClient clientsClient)
 {
     _itemsClient   = itemsClient;
     _clientsClient = clientsClient;
     Data           = new Data {
         SearchContext = new NullSearchContext()
     };
     GotoSearchPage();
 }
Esempio n. 4
0
        public static ItemsClient CreateItemsClient(this CommerceClients source, string serviceUrl, string appId, string secretKey)
        {
            var client = new ItemsClient(new Uri(serviceUrl), appId, secretKey);

            return(client);
        }
Esempio n. 5
0
        public static ItemsClient CreateItemsClient(this CommerceClients source, string serviceUrl)
        {
            var client = new ItemsClient(new Uri(serviceUrl), source.CreateMessageProcessingHandler());

            return(client);
        }
 public static ItemsClient CreateItemsClient(this CommerceClients source, string serviceUrl, string appId, string secretKey)
 {
     var client = new ItemsClient(new Uri(serviceUrl), appId, secretKey);
     return client;
 }
 public static ItemsClient CreateItemsClient(this CommerceClients source, string serviceUrl)
 {
     var client = new ItemsClient(new Uri(serviceUrl), source.CreateMessageProcessingHandler());
     return client;
 }