コード例 #1
0
        public async Task <List <NearestStoreLocation> > Process(CommerceContext commerceContext, GetNearestStoreDetailsByLocationArgument inputArgumentList)
        {
            GetNearestStoreDetailsByLocationCommand getNearestStoreDetailsByLocationCommand = this;
            CommercePipelineExecutionContextOptions pipelineContextOptions = commerceContext.GetPipelineContextOptions();

            //InventorySet result = (InventorySet)null;
            List <NearestStoreLocation> sets = new List <NearestStoreLocation>();

            using (CommandActivity.Start(commerceContext, (CommerceCommand)getNearestStoreDetailsByLocationCommand))
            {
                sets = await getNearestStoreDetailsByLocationCommand._getNearestStoreDetailsByLocationPipeline.Run(inputArgumentList, pipelineContextOptions);
            }

            return(sets);
        }
コード例 #2
0
        public async Task <List <NearestStoreLocation> > Process(CommerceContext commerceContext, GetNearestStoreDetailsByLocationArgument inputArgumentList)
        {
            GetNearestStoreDetailsByLocationCommand getNearestStoreDetailsByLocationCommand = this;

            commerceContext.Logger.LogInformation("GetNearestStoreDetailsByLocationCommand: Latitude " + inputArgumentList.Latitude + " - Longitude " + inputArgumentList.Longitude);

            List <NearestStoreLocation> sets = new List <NearestStoreLocation>();

            using (CommandActivity.Start(commerceContext, getNearestStoreDetailsByLocationCommand))
            {
                sets = await getNearestStoreDetailsByLocationCommand._getNearestStoreDetailsByLocationPipeline.Run(inputArgumentList, commerceContext.PipelineContextOptions).ConfigureAwait(false);
            }

            return(sets);
        }