コード例 #1
0
        internal void RunGetProductsRequest(ProductFilterClause filter)
        {
            Console.WriteLine("----------- Calling GetProducts with a filter of {0}. ------------", filter.ToString());

            var request = new GetProductsRequest
            {
                Filter = filter
            };

            var response = service.GetProducts(request);

            foreach (var product in response.ProductNames)
            {
                Console.WriteLine("Retrieved {1} which has an Id of {0}", product.Id, product.Name);
            }

            Console.WriteLine();
        }
 public GetProductsResponse GetProducts(GetProductsRequest request)
 {
     var component = container.Resolve<IProcessComponent<GetProductsRequest, GetProductsResponse>>();
     return component.Process(request);
 }