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; }
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(); }
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); }
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; }