/// <summary>
        /// Handles the specified command.
        /// </summary>
        /// <param name="command">The command.</param>
        public async void Handle(AmazonGetCustomerInfo3dPartyCommand command)
        {
            var ratingInfo = await CustomerRating.GetRating(command.SellerId);

            InfoAccumulator info = new InfoAccumulator();

            SendReply(info, command, resp => resp.BusinessName = ratingInfo.Name);
        }
예제 #2
0
        private static Task <AmazonGetCustomerInfo3dPartyCommandResponse> GetCustomerInfo(IContainer container)
        {
            var getCustomerInfo = container.GetInstance <AmazonGetCustomerInfoSendRecieve>();
            var command         = new AmazonGetCustomerInfo3dPartyCommand {
                SellerId = securityInfo.MerchantId
            };

            return(getCustomerInfo.SendAsync(ThirdPartiesService.EndpointName, command));
        }